Bonjour,
je travaille actuellement avec une base oracle 8i et le provider Oracle.DataAccess.Client 10.2 à partir desquelles je créé un dataset typé.
Le problème que je rencontre est que lorsque j'essaie de builder mon site web il me met ce message d'erreur 4fois pour chaque datatableAdapter créer :
il suffit que je mette quelque ligne en commentaire et ça passe mais bon c'est du code généré donc ca me gèneProperty or indexer 'Oracle.DataAccess.Client.OracleCommand.Transaction' cannot be assigned to -- it is read only
Ce code est généré automatiquement à chaque fois que j'édite mon dataset. Je trouve tout de même bizarre d'avoir ces erreurs, sachant que je n'ai aucune commande d'Update de Delete ou de Insert.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal global::Oracle.DataAccess.Client.OracleTransaction Transaction { get { return this._transaction; } set { this._transaction = value; // c'est à partir de la que j'ai des erreurs for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { -> this.CommandCollection[i].Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.DeleteCommand != null))) { -> this.Adapter.DeleteCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.InsertCommand != null))) { -> this.Adapter.InsertCommand.Transaction = this._transaction; } if (((this.Adapter != null) && (this.Adapter.UpdateCommand != null))) { -> this.Adapter.UpdateCommand.Transaction = this._transaction; } } }
Partager