The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Solution question

Last post 05-01-2007, 9:29 PM by JGS. 1 replies.
Sort Posts: Previous Next
  •  04-30-2007, 7:31 AM 2106

    Solution question

    I have read other articles on this forum about the 2 tier solutions using es, i have a similar situation

     some have suggested forget about the n-tier system as it overcomplicates matters and just slam everything into the app_code folder, i cannot do that.

     So i have es in the another project and a window forms in another

     when i reference the bo in the windows forms everything is great until i try to use the addnew method then the windows project wants a reference to the es.core ??? I dont konw why i have to reference the es dlls in  the windows forms when those methods (Addnew,Save) should be exposed already through the BO layer generated classes.

     Any advise would be appreciated

  •  05-01-2007, 9:29 PM 2139 in reply to 2106

    Re: Solution question

    I think I have a similar situation, but for different reasons.  I prefer to develop using a language (Chrome-a form of object pascal) for which ES does not, understandably, provide code generation templates.   To overcome this small hurdle I simple build my solution with a C# project and a Chrome project.  My C# project generates one DLL that contains all the ES generated code.  I then simply reference that DLL in my Chrome project. 

    Now, I too have to include references to ES DLLs in my Chrome project, but I have never really taken the time to ponder why.  Having now pondered a little I suspect, in my case, the need for the references are due to 1) the "hard coding" of the connection info into my Chrome initialization process, and 2) it may be an issue of the various scopes assigned methods within the ES classes.  For example a scope of Assembly could cover an entire application, allowing it to function normally until you start making external calls as it appears you/we/me may be doing. 

    Hopefully someone much more knowledgeable than me can/will chime in with a yea or ney as to my "theories."

     

View as RSS news feed in XML