How to relate a SQL based entity with an Object based entity in Entity Framework



Hi,

I have an Entity data model built in Entity Framework, which sources data primarily from an MS SQL 2008 database, and sources some static (data dictionary) values from code-based objects. I know I *could* store the data dict values in SQL: for various reasons that's not the path I want to take.

I have some lookups, which are based on code-based Objects. They are encapsulated in Objects because the values can change during processing, and are not persisted to the database, and they derive from "EntityObject" so they are EF-ready.

For example, I may have an EF object "Event", and an Object type "EventType". Event is stored in the database, however EventType is loaded depending on what types I support in an application variant (depending on DLLs loaded).

In looking at the edmx file and other info, I can't see how to mix SQL and Non-SQL Object based entities.

How can I create an EF relation between the SQL based "Event", and an Object based "EventType"?

Thanks in advance for assistance,
+Mark

.



Relevant Pages

  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... But SQL does not have a pointer data type or the ... > being told to design a database. ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... a surrogate key should support the primary key. ... But SQL does not have a pointer data type or the ... > being told to design a database. ...
    (comp.databases.theory)
  • Re: dbdebunk Quote of Week comment
    ... But SQL does not have a pointer data type or the ... More and more programmers who have absolutely no database training are ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: Just say no to threads [Was: Software architecture]
    ... they knew there was going to be a database in the app. ... Now my colleague just spent a couple/three weeks designing an SQL ... Turns out they have a flat file of sample information, ...
    (comp.object)