Object persisted with NHibernate without ID -


let's have table in database looks like:

id | value1 | value2 ---+--------+------- 0  | fooooo | 3.1415 1  | baaaar | 6.2830 

and want map these object like:

public class myclass {    string value1 { get; set; }    double value2 { get; set; } } 

but don't want myclass contain id field. instead happy keep ids of objects in separated structures, instance in dictionary<int,myclass>. there way can use nhibernate that?


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -