Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi.....
I have 3 column in may table. Id primary key and identity key,status default value false,feedback.

I want insert value only in feedback using entity framework in n-tier arct.

First of all i made Bo class such as private int id; pubic int id{get,set}
Now I made DAL class where I made function using(ENAme context=new Ename)
Tablename tt=new Tablename
context.addtotalename(tt)
context.savechanges();

Now I made BAL class whaere I call DAL function.In mu aspx.cs page I did work on click on button

Bo aa=new BO();
aa.feedback=Textbox1.text;
bal ss=new bal();
ss.insert(aa)





My error is that cannot insert the null into 'feedback'.
Posted

Hi ,
First you write the hard code value for feedback . if this will work for you . its means you did not get the value of feedback

Thanks
 
Share this answer
 
Comments
Akhilesh Kumar Pathak 28-Feb-13 5:13am    
Hi
Thanks for reply
Its not taking hard code value
pass all values which are not nullable simple here
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900