-1
Good afternoon!
I am developing a modular system. Where in this system I have the registration module, the sales module, financial ...
The structure of my project is like this. I have a solution, in it I have the main project where will be menu screen, system opening ... then I have a project called cadatros, and a project called sales (each module is a project). Good, I would like that when I run the system, if the customer does not have the sales module, it does not create the sales tables in the database (I am developing the base with date Annotation and Fluent API - CF). Well I came across the following dilemma: In the sales module I have the requested table, which will have a relationship with client that is in the registration module (References to access guidelines of other modules is OK) The doubt is .. How do I create this relationship? is a relationship 1.. No customer model has public virtual ICollection<Pedido> pedidos {get;set;}
, would only have in Request public virtual Cliente cliente {get; private set;}