How To Maintain Transaction In C#?
Answer / mohit jethva
You need to create object of connection and then create
object of command and then assign a conn.begintransation to
a command object then tran.commit or tran.rollback this way
you can maintain transaction in c#
Is This Answer Correct ? | 8 Yes | 1 No |
i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?
What is a event in c#?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
Explain the difference between private and shared assembly?
What is stringwriter c#?
What does typeof return c#?
What is method and function in c#?
What are anonymous methods ? why these methods are used and in what condition these methods are useful ?
Are constructors inherited c#?
What is a cs file?
How many types of constructors are available in c#?
Can you change the value of a variable while debugging a C# application?