News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
Table to entity model converter

 
Example:
Step 1: Copy table coloumns form the design view of a table using SQL Server Management Studio
Step 2: Paste the copied coloumn(s) in the filed Table Coloumn(s) like the sample below, then "click" on Generate Button.
    SourceId	int	Unchecked
    SourceName	nvarchar(200)	Unchecked
    ActiveStatus	bit	Unchecked
    RecordStatus	bit	Unchecked
    CreatedBy	int	Unchecked
    CreatedDate	datetime	Unchecked
    UpdatedBy	int	Checked
    UpdatedDate	datetime	Checked
            
Step 3: Finally your enitity model will be generated like below.
    [Display(Name = "Source Id")]
    [Required(ErrorMessage = "{0} is Required")]
    public int SourceId { get; set; }

    [Display(Name = "                Source Name")]
    [Required(ErrorMessage = "{0} is Required")]
    [StringLength(200, ErrorMessage = "Maximum length is {1}")]
    public string                 SourceName { get; set; }

    [Display(Name = "                Active Status")]
    [Required(ErrorMessage = "{0} is Required")]
    public bool                 ActiveStatus { get; set; }

    [Display(Name = "                Record Status")]
    [Required(ErrorMessage = "{0} is Required")]
    public bool                 RecordStatus { get; set; }

    [Display(Name = "                Created By")]
    [Required(ErrorMessage = "{0} is Required")]
    public int                 CreatedBy { get; set; }

    [Display(Name = "                Created Date")]
    [Required(ErrorMessage = "{0} is Required")]
    public DateTime                 CreatedDate { get; set; }

    [Display(Name = "                Updated By")]
    public int?                 UpdatedBy { get; set; }

    [Display(Name = "                Updated Date")]
    public DateTime?                 UpdatedDate { get; set; }
            
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;