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.

fluent nhibernate - Pivot in FluentNhibernate -


i have table structure follows:

create table messageparameters  (     sequenceid              int                 identity(1,1) not null,     messagequeueid          int                 not null,     parametername           varchar(50)         not null,     parametervalue          varchar(300)        not null,      constraint pk_messageparameters primary key clustered(sequenceid) )  create table messagequeue (     sequenceid              int                 identity(1,1) not null,     messagetype             int                 not null,     [status]                int                 default(0) not null,     created                 datetime            default(getdate()) not null,     modified                datetime            default(getdate()) not null,      constraint pk_messagequeue primary key clustered(sequenceid) ) 

what want use subclassing based on messagetype object model. straightforward enough, pivot collection of parameters actual properties on subclass.

for instance, have (sub)class activationemail

public class activationemail : messagebase {     //shared properties member of base class      public string param1 {get; set;}     public string param2 {get; set;}     public string param3 {get; set;} } 

will result in data in messageparameters table above this

parametername                              parametervalue ------------------------------------------ --------------------------------- param1                                     value1 param2                                     value2 param3                                     value3 

i understand have list part of object params , have properties (param1, param2, etc) auto add/update/retrieve data in list, i'm hoping handled within mappings themselves.


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 -