Questions tagged [entity-framework-designer]

17 questions
4
votes
2 answers

Entity framework model creation

When using the Entity Framework there are basically two ways to create your model. You either create the model in SQL server or in Visual Studio EF designer. Those are outlined below. Start with Database You first create the model in your SQL…
3
votes
1 answer

Entity Framework mapping two table columns to same related table Key

I'm in a situation where I have a table called Elements. Now I'm creating a table called Divergences that will store basically pairs of Elements. The purpose of Divergence is to check if two Elements have diverging answers. Element …
2
votes
1 answer

Adding tables to Entity Framework model results in RPC "too many parameters" error

When updating an EDMX model from the designer to add tables on a large database, an error is returned in the output window: Unable to generate the model because of the following exception: 'An error occurred while executing the command…
BrianCooksey
  • 1,543
  • 1
  • 12
  • 19
2
votes
1 answer

One to one relationship visual studio 2010 diagram between key and nonkey

Hi I have these two tables: Client: -IdClient: primary key -Name -IdAccount Account: -IdAccount: primary key -Total I one to create a 1 to 1 relationship using IdAccount from Client table and IdAccount from Account table. I…
bb2
  • 97
  • 2
  • 9
2
votes
3 answers

How to inherit from IdentityUser in entity framework designer

I have an asp.net mvc project that uses asp.net Identity to authenticate users. The database has been designed in entity framework designer. There is a table named "Farmers" and I want to allow each farmer to login to the application. As I know in…
1
vote
1 answer

How do I filter results from an association table that is linked to only one other table?

So I can't figure out how to properly construct my EF query to get the rows I want. I'm only working with two tables here. The Entity Framework designer creates this edmx diagram for my db structure. The loop at the top represents the association…
1
vote
1 answer

No option for VsixContent in Build Action property for extension.vsixmanifest

I'm trying to create an entity framework designer extension and following the example from Entity Framework 4 in Action. The book provides an example that is very similar to this one. Note the "Note" under step 6 where he says to set the Build…
devlife
  • 15,275
  • 27
  • 77
  • 131
1
vote
1 answer

How to add a property to the Properties window in the Entity Framework Designer

Is there a way to add a custom property to the Properties window for an entity Entity Framework designer? I've extended the T4 files to auto generate some repositories but I only want to do that if an entity is an Aggregate Root. I'd love to add a…
devlife
  • 15,275
  • 27
  • 77
  • 131
1
vote
0 answers

How to set focus to an Entity in the Entity Framework Designer when an on-click event is triggered?

I'm writing a Visual Studio Extension (VSPackage) which interacts with the Entity Framework. My extension currently consists of a ToolWindow with a UserControl as content. I can populate this UserControl with WPF Controls using WPF/XAML. I'm…
1
vote
0 answers

ADO.NET Entity Data Model Designer extension-InvalidOperationException

Searching in internet I found this page: http://connect.microsoft.com/VisualStudio/feedback/details/585738/exception-in-entity-data-model-designer-extension-a-property-extension-cannot-edit-an-item-in-an-entity-framework-namespace I have a similar…
0
votes
1 answer

How to add new Code Generation Item for EF Designer?

Can anyone tell me how to create an Item Template that can be used by the EF designer for the Add Code Generation Item option? I have created the Item Template and it works like a dream! However, I can't figure out how to get it to show up in the…
devlife
  • 15,275
  • 27
  • 77
  • 131
0
votes
3 answers

Entity Framework Designer Extension Not loading

I created a small extension for the EF designer that adds a new property to the property window. I did this using a vsix project (new project -> c# -> extensibility -> vsix project). When I hit F5 the experimental VS instance starts up. I create…
0
votes
1 answer

What does the "Update" button do for complex types in EF when using function import

In EF, when you add a function import, you are asked to specify the name and the SProc. Then you can decide the return (it can be None, Scalers, Complex, and Entities). What happens when you choose Complex and then press the update button? I think I…
Darcy
  • 5,228
  • 12
  • 53
  • 79
0
votes
3 answers

How to prepare Database to generate EF model from it

I have some misunderstanding how my objects should be represented in a relational db structure. For example if I have a simple tables structure that looks like that: And if I generate an Entity Framework model based on that, it would be look…
iLemming
  • 34,477
  • 60
  • 195
  • 309
0
votes
2 answers

Entity Data Model Wizard not showing EF Designer - DLL Not found

I am following this tutorial to create .edmx file using a Database First Approach (using Add->NewItem-> ADO.NET Entity Data Model) When I enter into the Entity Data Model Wizard, I don't see any option like EF Designer from database. To resolve…
1
2