Is it possible to name a column in LINQ modeling in the same way as in a table? For example:
[Table(Name="tblCC_Business")]
public class Business
{
[Column(IsPrimaryKey=true, IsDbGenerated=false)]
public string BusinessID { get; set; }
[Column] public string Business { get; set; }
}
Our SQL table names do not necessarily reflect the naming scheme of the business model (this is a very large system, so we do this). I knew about methods such as using underscores and @ characters, although I was not sure if this worked for such things. It is rather a language thing.
source
share