Answer the question
In order to leave comments, you need to log in
Code Generation Strategy property. Why so many errors?
Reading "C# 5.0 and the .NET 4.5 platform by Andrew Troelsen". In the Entity Framework chapter, he talks about the InventoryEDM.Designer.cs file of the InventoeyEDM.edmx model. However, my file is empty. It contains only such comments.
// Создание кода по умолчанию отключено для модели "c:\users\wkololo\documents\visual studio 2012\Projects\EDMModel\EDMModel\AutoLotModel.edmx".
// Чтобы включить создание кода по умолчанию, замените значение свойства "Стратегия создания кода"
// конструктора на другое. Это свойство доступно в окне "Свойства", когда модель
// открыта в конструкторе.
Answer the question
In order to leave comments, you need to log in
I figured it out, it turns out the author of the book uses ef 4.0 whose methods are now obsolete.
Let's assume you're using Visual Studio 2012 and the example you're trying to run was created in Visual Studio 2010. In that case, the solution would be to regenerate the model.
I would recommend that you use the same version of Visual Studio that the author used to write the examples, this is probably indicated at the beginning of the book. So you are guaranteed not to have errors when running the examples.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question