Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

EF will not create columns RULE

using System.ComponentModel.DataAnnotations;

public class Student
{
    private int _age = 0;

    public int StudentId { get; set; }
    public string StudentName { get; set; }
    public string City { get{ return StudentName;}  }
    public int Age { set{ _age = value;}  }
}
Source by www.entityframeworktutorial.net #
 
PREVIOUS NEXT
Tagged: #EF #create #columns #RULE
ADD COMMENT
Topic
Name
6+3 =