Entity Framework 5.0 - Intro to Model First - Part 2 of 2

preview_player
Показать описание
Quick introduction to Model First, broken down into 2 parts.

Thank you for watching!! :D
Fabio Scopel
Рекомендации по теме
Комментарии
Автор

Great work again, bro. You've got a knack for explaining this stuff in plain English.

mnelson
Автор

Thank you so much. Database first coming up next.

Coffeecupdev
Автор

Just want to say thanks for a fantastic video, learned allot from it. Keep up the good work
Cheers

mikkeljbassen
Автор

Nice one, Also let us know how to avoid the issue like when we are updating the model classes for minor modifications then we need to again recreate the Database scripts and it causes data loss in existing Database.

sushilvarma
Автор

hey, thnx these was very helpfull. Is there any change that you could make a small tutorial to how to use EF with MVC (creating controllers and views using entities(models) ?

karaatlie
Автор

Its a good headsup for initiall kickers

rajeshrathinasabapathy
Автор

That's great. But... Why my VS2010 not generate many files, that in your project? All generated in one file( .Designer.cs)?

aleksandrignatov
Автор

no se encontro InvalidOperationException en EntityFramerWork.dll

Thank for your help

MrNmejiasv
Автор

I Fabio
I made a project with EF in VS2013
with Model layer and console layer,
with references of entityframerwork and model layer in console layer

the code of program is:
static void Main(string[] args)
{
ListaCategorias();
Console.WriteLine("Saltar una linea");
Console.ReadLine();
}
 
static void ListaCategorias()
{
using (var Context = new NorthwindEntities())
{
foreach (var c in Context.Categories)
{
Console.WriteLine("{0}\t{1}", c.CategoryID, c.CategoryName);
}
}
}

but I have a problem when I run with following message

MrNmejiasv
Автор

Forgot, I create Winforms solution. And my AccountingSystemContainer class inherited from ObjectContext... Why?

aleksandrignatov
Автор

Хоть один умный человек толково всё рассказал и показал. Спасибо!

visamway
Автор

could you provide a video related OData Web API ASP?

tornet
Автор

Continued from Part 1 of 2:
Because of the Mapping not working correctly the debugger stopped at:
var invHeader = db.InvoiceHeaders.Create();
with Error
{"Schema specified is not valid. Errors: \r\nAccountingSystemModel.msl(17, 12) : error 2019: Member Mapping specified is not valid. The type 'Edm.Int32[Nullable=False, DefaultValue=]' of member 'Quantity' in type is not compatible with 'SqlServer.nvarchar(max)[Nullable=False, DefaultValue=, ....

johntrites