in

DotNetMarche

.NET Framework User Group delle Marche

This Blog

Syndication

ExternalBlogs

Second IUserType of the day - Store a list of string in database with NHIbernate.

I have an object that has 4 properties of IList<String> type. You can natively map these properties in a separate table with this simple mapping <bag name="keys" access="field" cascade="all-delete-orphan" table="Keys" fetch="join"> <key column="deps_id" /> <element column="deps_key" type="String" /> </bag> Ok, this is a simple mapping that store all the keys into another [...]

Read the complete post at http://feeds.feedburner.com/~r/AlkampferEng/~3/325957845/

Powered by Community Server (Commercial Edition), by Telligent Systems