simple-access-orm icon indicating copy to clipboard operation
simple-access-orm copied to clipboard

SimpleAccess.Attributes.dll for reduce dependencies in POCO model

Open jmptrader opened this issue 8 years ago • 2 comments

Hi,

I need have my POCO model in two tiers:

     - desktop application  (winform)
     - bussines component (application server)

If I generate the poco model component, the dependency on simple-access-orm assembly complete is copied.

I think that "SimpleAccess.Core/Attributes" must be an assembly separated, b.e. SimpleAccess.Attributes.dll.

(I tried with BLToolKit but is impossible because exist an high coupled between components).

Thank's,

JM

jmptrader avatar Mar 17 '17 02:03 jmptrader

I liked the idea but instead of SimpleAccess.Attributes.dll it should be SimpleAccess.Entities.dll and I should move all the Entities code to SimpleAccess.Entities.dll which includes SimpleAccess/Attributes, SimpleAccess/Entity and SimpleAccess/Compatible (We can remove SimpleAccess/Compatible, It is here just to support SimpleAccess 1).

But still you need to reference SimpleAccess.Attributes in your POCO model. Well you can add only SimpleAccess.Core for your POCO.

SimpleAccess.Core is designed to have the same API implementation for Sql Server, Oracle, MySql and SQLite to make SimpleAccess database independent. SimpleAccess.Core has just Interfaces and the base implementation for entities. We are referencing the 'SimpleAccess.Core' from the nuget.

Let me know what you think.

Thank you.

sheryever avatar Mar 17 '17 03:03 sheryever

If I reference the SimpleAccess.Core for my POCO model is much, with only attributes seems to me sufficient.

My suggestion was because the classes of Attributes no has dependencies and can be build into an assembly independent.

Thank you.

jmptrader avatar Mar 20 '17 18:03 jmptrader