Hi I want to create a model with out using ORM to save it into the SQL Server. Is it possible? And I want to use stored procedures. How can I do that. Can anyone help me in this?
Thanks in advance
Regards
Siva
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ORM simply means Object Relational Mapping.
One thing you could do, and I would recommended against, is to create some classes that are complete ignorant of their database properties, and create methods for saving or updating into the database based on parameters you choose and using the SqlCommand class to issue the command to execute those stored procedures.
All of the methods for direct manipulation of data to and from a SQL database are found in the System.Data.SqlClient Namespace. You will need to deal directly with DataReaders and all the other wonderful * cough * things that ORMs have abstracted away for us.
You’d be better off using Entity Framework, LINQ to SQL, or nHibernate.