AS SALAMO ALAIKUM WA RAHMATULLAH
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace WebApplication2.Models
{
public class Products
{
[Display(Name = "Product Id")]
public Int64 ID { get; set; }
[Display(Name = "Product code")]
[Required(ErrorMessage = "Product code required")]
[StringLength(10, MinimumLength = 6, ErrorMessage = "Minimum length of product is 6")]
public string Pcode { get; set; }
[Display(Name = "Product name")]
[Required(ErrorMessage = "Product name required")]
[StringLength(50, MinimumLength = 1, ErrorMessage = "Minimum length of product is 1")]
public string Pname { get; set; }
[Display(Name="Price")]
public decimal price { get; set; }
}
}
--
MA ASALAAM
PASSION 4 ORACLE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace WebApplication2.Models
{
public class Products
{
[Display(Name = "Product Id")]
public Int64 ID { get; set; }
[Display(Name = "Product code")]
[Required(ErrorMessage = "Product code required")]
[StringLength(10, MinimumLength = 6, ErrorMessage = "Minimum length of product is 6")]
public string Pcode { get; set; }
[Display(Name = "Product name")]
[Required(ErrorMessage = "Product name required")]
[StringLength(50, MinimumLength = 1, ErrorMessage = "Minimum length of product is 1")]
public string Pname { get; set; }
[Display(Name="Price")]
public decimal price { get; set; }
}
}
--
MA ASALAAM
PASSION 4 ORACLE
No comments:
Post a Comment