// Adds a Customer EntitySet but allows caller to configure keys public static ODataModelBuilder Add_Customers_With_Keys_EntitySet <TKey>(this ODataModelBuilder builder, Expression <Func <Customer, TKey> > keyDefinitionExpression) { builder.Add_Customer_With_Keys_EntityType(keyDefinitionExpression).EntitySet <Customer>("Customers"); return(builder); }