hydrate in nhibernate? -


What is hydrate in nhibernate? I am not able to get my head around this period.

Please give advice.

Thank you AJ

You may wish to see. It's a part of the hydration that you might find interesting.

But in reality, hydrations from the simple view mean that the raw continuous storage module and the map take the object / object list. Look at

Update

or I think this is happening in the video you describe for the hydration of the objects.

Example

This is actually a simple hydration example (not a NHibernate example)

We say that we have a query Like the name: Select the name, breed with tblDogs and those who have these results

  K9, Germanshafder ibibland, Labrador Small Enoyance, Shitsu trigger, Germanshfard  
< P> And say we have the following objects:

  Public class dog {public string name {get; Set; } Public string breed {get; Set; }}  

Now we can write our own hydrator:

  public list & lt; Dog & gt; Hydrate (Results RS) {List & lt; Dogs & gt; Dogs = new list & lt; Dogs & gt; (); Foreign currency (Record RE in RS) {dog D = new dog (); D.name = rec ["name"]; D.breed = rec ["breed"]; Dogs.Add (d); } Dogs changed; }  

Comments

Popular posts from this blog

MVP, design question -

excel - Populate list via a bi-Condition -

iphone - How do I make a UIPickerView in a UIActionSheet -