New Posts New Posts RSS Feed: t4 template: Internals and interfaces
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

t4 template: Internals and interfaces

 Post Reply Post Reply
Author
mantaray View Drop Down
Newbie
Newbie


Joined: 24-Jun-2011
Posts: 1
Post Options Post Options   Quote mantaray Quote  Post ReplyReply Direct Link To This Post Topic: t4 template: Internals and interfaces
    Posted: 24-Jun-2011 at 3:31am
Hi there! We are in the process of testing DevForce for our system. Currently we are trying to determine if it is possible to place an interface layer between DevForce and our system - we need the data source to be completely separate from the system, which means that we only want to reference DevForce in the data provider assembly, NEVER in the application. This means that we need to add interfaces to the entity classes as well as making the entities and entity manager internal. Is this possible? It's a pity the t4 isn't "normal"... then these kinds of changes would be easy.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 27-Jun-2011 at 2:16pm
Hi mantaray;

Yes, it's possible.

What you call an "interface layer", is what we call a "repository layer". We always recommend our customers to hide the DevForce details behind the repository layers. Here's a write up on how to do that with DevForce-Caliburn Framework. 


You can modify the entities access modifiers to internal in the EDMX designer. There's no need to make the EntityManager internal since as long as the entities are internal, they won't be accessible from the EntityManager outside the repository.

If you're interested, we have Professional Services team that can help you with guidance on best practices and architectural type questions.

Hope this helps.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down