Tagged Questions
0
votes
2answers
12 views
Pass OracleTransaction value to new form
I have some stored Procedures on one form and at the end I do not commit or rollback. A new form loads and a question prompts the user "Are there any other products in the box?" When the user clicks ...
1
vote
2answers
90 views
SET TRANSACTION error , C# , Oracle
I have procedure in my C# device application app. This is how it looks:
private void stk_crane_start_movement()
{
conn.Open();
OracleCommand cmd = new OracleCommand();
...
0
votes
0answers
180 views
Datagridview cell not comitting after edit (Bound to database)
So, I have a datagridview bound to a database. And I am using this code to commit changes after cell edit. But it's not committing the changes to the database. After I fill my dataSet the cell's value ...
0
votes
1answer
361 views
WinForm trying to commit DataGridView changes from CellValueChanged event
I have 2 Forms written in C# 4.0. FormA has a DataGridView hooked up to a MS SQL Database with a DataAdapter and a BindingSource. The grid has a checkbox. When the user ticks the checkbox FormB is ...
1
vote
1answer
264 views
Timeout when trying to Transaction.Commit() to database; potential deadlock?
I have a web page that has coding structured somewhat as follows:
SqlConnection conX =new SqlConnection(blablabla);
conX.Open();
SqlTransaction tran=conX.BeginTransaction();
try{
SqlCommand ...
0
votes
0answers
149 views
Force to commit and exit edit mode when DataGridView.IsCurrentCellDirty
I would like to force commit changes and exit edit mode for a cell in CurrentCellDirtyStateChanged event. In this event I do:
if (this.gridView.IsCurrentCellDirty)
{
...
3
votes
3answers
127 views
Modify a text file on commit for SVN to let my program know of its commit number
I am wanting to display in my application current commit number. I use SVN and my code is C#.
I wonder if I can update automatically a text file WITHIN REPOSITORY so it will contain a commit number, ...
2
votes
0answers
307 views
WPF Datagrid combobox retrieving value before commit
I've got a Datagrid in a WPF application (with Entity Framework) that has a combobox as one of the columns in it.
This combobox is bound to a datasource that is using a joined reference to a table ...
0
votes
0answers
61 views
A deployment issue in Visual Studio 2010
I developed an app(say a1) which works with an other app (say a2). I somehow found a way to install both the setup from within one MSI using custom action editor-->Commit. I used commit to install a2 ...
1
vote
1answer
733 views
C# - Cannot commit changes to Access DB
I'm working on a Windows Forms project that requires me to connect to an access database and navigate through records, and add/delete them. I've looked at a few tutorials online, and thought I ...
3
votes
2answers
680 views
SQLite transaction is not succeeded although I do not rollback my transaction?
Create the Connection + Transaction:
public SQLiteTransaction BeginTransaction()
{
var con = new SQLiteConnection(@"Data Source=A:\TransactionScopeTest\TransactionTest.db;Foreign ...
2
votes
1answer
384 views
How to unit test a transaction commit timeout in MySql?
I'm writing a unit test to reproduce the scenario where a timeout is reached when calling Commit on a MySqlTransaction (using C# and MySql Connector/Net), but I just don't find the way to force this ...
3
votes
3answers
897 views
How to check if Dotnet transaction is rolled back?
How Can I check if a dotnet transaction is closed or not ?
0
votes
1answer
504 views
SQL Compact, new DataSet, identity column in reverse order and no commit?
I created a new .dsf database for my application. I added just one table with two columns, "ID" (int, auto-increment, step=1, start=1) and another column called "Name" of nchar.
Then I added a new ...
1
vote
1answer
2k views
Transactions with EF
I have 2 questions :
i) How can put this code in a transaction ?
With ObjectContext in EF, I use ExecuteStoreQuery() method to start some stored procedure. I have a block of code like this :
{
...