Sometimes you want your underlying table name to differ from the entity name in your code. This is done easily by using the NameInStore property of the Entity attribute like so:

    [Entity(NameInStore="Users")]
    internal class MyClassName
    {
    }


You may also want to re-map the names of specific fields in your Entity classes. This is done using the FieldName property of the Fiel attribute like so:

    [Entity]
    internal class MyClassName
    {
        [Field(FieldName="MyColumnName")]
        string Foo { get; set; }
    }

Last edited Jun 30, 2010 at 6:56 PM by ctacke, version 1

Comments

No comments yet.