Otis wrote:
The data you want to relate to, is that data in your own database? If so, you can create the view in your db of course. Otherwise, I'm a bit puzzled where the data comes from, physically.
The data I want to relate to might or might not be in my own database. For example SQLServer can create views that get the data on other databases and possibly other machines.
Example:
My web site uses a table called PERSON
in this table I have a field called cf_id.
My local town has a database with all the information on a citizen and the table is named
CITIZEN with a primary key cf_id.
The cf_id on my PERSON table should be a foreign key on CITIZEN, but obviously this is not possible to achieve as CITIZEN already exists and is part of my local town db.
So, I guess the only way is to create a CITIZEN table in my database, use it in development, and in production replace it with a View that reads from LOCALTOWNDB.CITIZEN
We've done this before and it worked, I just wandered if it will work with LLBLGen generated code.