Replies: 4 comments 1 reply
|
LiteXDbHelper.Demo nothing any code for this packet |
0 replies
|
@danthanhtrung Thank you to bring this to my attention. I will add a Demo project for DbHelper packages. At this moment I am occupied with other important stuff. I have opened a new issue for the same: #6 |
0 replies
|
You didn't make any throw error exception, for example in the case connection is wrong and more |
0 replies
|
It will throw an exception when the connection opens. For example: public int ExecuteNonQuery(string cmdText, CommandType cmdType, params DbParameter[] dbParameters)
{
using (var connection = new SqlConnection(ConnectionString))
{
using (var command = CreateCommand(connection, cmdText, cmdType, dbParameters))
{
connection.Open(); // connection opens
var result = command.ExecuteNonQuery();
connection.Close();
return result;
}
}
} |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
All reactions