sheryever / simple-access-orm

Simple Access ORM provides database access in Ado.net methods naming pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SimpleAccess.Attributes.dll for reduce dependencies in POCO model

jmptrader opened this issue · comments

commented

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

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.

commented

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.