Lets say I have a database table with the following fields: 'ID','FirstName,'LastName','Phone' .
I map the table and create the entity in the LLBLGEN designer called ClassRosterEntity
Is it possiable to add a custom field, for example, 'Name', in the designer so I could override in a code.
An example code snippet would be:
[Serializable]
public class ClassRosterObject : ClassRosterEntity
{
public ClassRosterObject() : base() { }
public ClassRosterObject(int id) : base(id) { }
private ClassRosterObject(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context) { }
public override string Name
{
get
{
return string.Format("{0}, {1}", base.LastName, base.FirstName);
}
}
}