Monday, September 09, 2013

Entity Container Name Gotcha

Was coding today in an application I support currently (Very large)...

Lesson learned --- When working with .edmx (Entity Framework)

1) Always ensure the project for the entity framework is a reference in your current project you need to use the entities for.

2)  When using the "Using" statement create as follows:

'Note I shortcut contact with ctx

Using ctx As New nameOfEntity()  ' Here is the key to this lesson nameOfEntity is the "Entity Container Name" listed under the properties for the .edmx model.

Very important.    Remember this one.



No comments:

Edge Computing Fundamentals: An Informational Guide for US Business Decision-Makers

Edge Computing Fundamentals Introduction to Edge Computing Edge computing is a distributed computing paradigm that brings data proce...