Im unable to insert data in Sql Database by entity framework

Last Reply 8 days ago By kalpesh

Posted 9 days ago

I'm follow your code(code link) from here. but I don't understand where I use AddToCustomers Method and I'm unable to Add NameSpace "TestModelNs".
Here is my aspx file(files link)

You are viewing reply posted by: kalpesh 8 days ago.
Posted 8 days ago Modified on 8 days ago

As in example it use to save the Customer details based on customer table entity object.

so you need to use your entity name which you are using by table name.

as in example AddToCustomer is used when we click on add button which saves the textboxes values to customersentities object.

so you need to call the save method where you are trying to save the entity details.

Also if have added Entity Data Model with name TestModelNs then only you can imprt the namespace else you need to use same namespace which you assigned when you created Entity Data Model.

also share your code we are not able to access the links.

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html