I have one database, but I need two domains.

One domain is main and the other one, for example, is included into application plugin DLL. So I need to use it separately, but with one storage (database).

How can I deal with it in correct way (with keygenerators etc)?

Thanks in advance.

asked Nov 08 '10 at 11:16

Ness's gravatar image

Ness
155232328

edited Nov 08 '10 at 11:38

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412


One Answer:

The easiest way is to use different schemes for each of these domains (see DomainConfiguration.DefaultSchema).

Alternatively, you can use different table mapping names and explicitly specify key generators. If you're interested, I can explain this as well.

Likely, further we'll offer more easy options here. E.g. it should be possible to specify table name prefix, as is was possible in v3.X.

answered Nov 08 '10 at 11:51

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

See this question as well.

(Nov 08 '10 at 11:52) Alex Yakunin Alex%20Yakunin's gravatar image
(Nov 08 '10 at 11:53) Alex Yakunin Alex%20Yakunin's gravatar image

Ok, thanks. At that moment I don't need such function, but now I'm sure it exists :)

(Nov 08 '10 at 11:54) Ness Ness's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×573
×6
×4

Asked: Nov 08 '10 at 11:16

Seen: 2,425 times

Last updated: Nov 08 '10 at 11:54

powered by OSQA