klugy, linq2sql 'id' 'xid' ( - ) .
, Wim Haanstra, 'id', , get set , "xid".
:
public partial class File
{
public int? id
{
get { return xid; }
set { xid = value; }
}
}
this is most often done to map fields in the database to another type in the object, for example. int in the database for listing in the object, byte / small font / etc. in the database, logical in the object. or add attributes such as [DataMember] to the property.
source
share