Replies: 4 comments 1 reply
-
LiteXDbHelper.Demo nothing any code for this packet |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
You didn't make any throw error exception, for example in the case connection is wrong and more |
Beta Was this translation helpful? Give feedback.
-
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;
}
}
} |
Beta Was this translation helpful? Give feedback.
-
👋 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.
Beta Was this translation helpful? Give feedback.
All reactions