با سلام.
سایت را در هاست آپلود کردم. در هنگام درج در دیتابیس پیغام زیر ظاهر می شود. علت چیست؟
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.
connection string هم درست است. در لوکال هم درست است
پارامتر های ConnectionString رو درست ست کردید؟
رشته اتصال هاست با لوکال تفاوت داره
آیا رشته اتصال را ویرایش کردید ؟
با سپاس. connevtion string را تغییر داده ام
<add name="JournalDBEntities" connectionString="Data Source=.;Initial Catalog=Database name in host;integrated security=true;User ID=User in hodt;Password=password" providerName="System.Data.SqlClient"/>
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)