Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c# - Parent Child Relationships with Fluent NHibernate? -


i create cascading tree/list of n number of children given parent, child can become parent.

given following data structure:

countrytype=1; colortype=3; statetype=5
6,7,8 = {can, us, mex}
10, 11, 12 = {red, white, blue}
20,21,22= {california, florida, alberta}

treeid  listtypeid  parenttreeid           listitemid    1            1       null                   6   (canada country) 2            1       null                   7   (us country) 3            1       null                   8   (mexico country) 4            3       3                      10  (mexico has red) 5            3       3                      11  (mexico has white) 6            5       1                      22  (alberta in canada) 7            5       7                      20  (california in us) 8            5       7                      21  (florida in us) 9            3       6                     10  (alberta red) 10           3       6                    12  (alberta blue) 11          3       2                      10  (us red) 12          3       2                      11  (us blue) 

how represented in fluent nhibernate classes?

some direction appreciated.

thanks.

if model doesn't complicated go simple treenode entity nodetype enum property, name property , parentnode property of type treenode.

if plan add more complexity different node types go treenode entity subclassed different node types nodetype discriminator.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -