public void Type_GetTableName_Correct() { Assert.Equal("MyTestEntities", PluralConventionUtility.GetTableName <MyTestEntity>()); }
public T GetByPrimaryKey <T>(ObjectContext database, int id) where T : class { return((T)database.GetObjectByKey(new EntityKey(database.DefaultContainerName + "." + PluralConventionUtility.GetTableName <T>(), GetPrimaryKeyInfo <T>().Name, id))); }