fluent nhibernate - Extension methods on a poco class in subsonic? -


i'm considering switching fluent nhibernate subsonic nhib seems have massive memory footprint i'm not enjoying, want check how subsonic (the simple repository probably) cope with:

  • adding fields database: @ moment can map dictionary value field in database cool, possible in subsonic? (or similar?)

    fwiw: dynamiccomponent(x => x.propertybag, getdynamiccomponentpart); propertybag dictionary.

  • many many relationships

  • cascading saves/deletes
  • mapping complex object xml or varchar(max) column (seralize xml obviously)

* adding fields database: @ moment can map 

dictionary value field in database cool, possible in subsonic? (or similar?)

  fwiw: dynamiccomponent(x => x.propertybag, 

getdynamiccomponentpart); propertybag dictionary.

adding fields simple. add field table, re-generate classes t4 template.

you won't mapping beyond basic primitive types, though. not dictionary in field.

* many many relationships 

you have make custom modifications t4 template sort of support many-to-many tables. subsonic treats them other table.

i have made such modifications , of limited usefulness.

* cascading saves/deletes 

only on rdbms side. is, if setup foreign key relationships cascades. subsonic doesn't of this.

* mapping complex object xml or varchar(max) column (seralize 

it xml obviously)

nope. no support this. there no extensibility hooks insert own type converters.

subsonic different field nhibernate. call nhib orm, not call subsonic that. rob conery, author of subsonic, call query tool.

it simplistic, goal , strength (as weakness). assists querying , modifications in typed way. lacks huge amount of features , configurability/extensibility compared nhib or entity framework.

i caution against moving nhib ss, if have amount of functionality implemented in nhibernate already. not ss bad tool, has lot of restrictions.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -