• 

    Base Class for LINQ2SQL

    EntityBase provides CRUD functionality for LINQ2SQL classes, making the creation of business classes a snap.

    Once EntityBase is set up for your DataContext, implementing a LINQ2SQL class is as easy as this:

        public partial class MyEntity: CoreEntity<MyEntity, long>
    {
    public override System.Linq.Expressions.Expression<Func<MyEntity, long>> GetIDSelector(string ID)
    {
    return e => e.EntityId == ID;
    }

    public override string GetKey(MyEntity Entity)
    {
    return Entity.EntityId;
    }
    }

    Visit EntityBase at CodePlex to find out more.