[UnintentionalCodeFirstException: Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model First ensure that the Entity Framework connection string is specified in the config file of executing application. To use these classes, that were generated from Database First or Model First, with Code First add any additional configuration using attributes or the DbModelBuilder API and then remove the code that throws this exception.]
BLL.HYEntities.OnModelCreating(DbModelBuilder modelBuilder) +76
System.Data.Entity.Internal.LazyInternalContext.CreateModelBuilder() +476
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +20
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +224
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +864
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +25
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +69
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +66
System.Linq.Queryable.Join(IQueryable`1 outer, IEnumerable`1 inner, Expression`1 outerKeySelector, Expression`1 innerKeySelector, Expression`1 resultSelector) +115
FirmaScript.Default.Page_Load(Object sender, EventArgs e) +2127
System.Web.UI.Control.OnLoad(EventArgs e) +108
System.Web.UI.Control.LoadRecursive() +90
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533
|