To get database table name on Entity framework 4.0 I do:
ObjectSetInstance.EntitySet.ToString()
Is there a way to do this on Entity Framewo
Source: https://msdn.microsoft.com/en-gb/data/jj819164.aspx
using System.Data.Entity;
using System.Data.Entity.Infrastructure.DependencyResolution;
using System.Data.Entity.Infrastructure.Pluralization;
var service = DbConfiguration.DependencyResolver.GetService();
var entitySetName = service.Pluralize(typeof(TEntity).Name));