/// <summary> /// Create row updating event. /// </summary> protected override RowUpdatingEventArgs CreateRowUpdatingEvent([NotNull] DataRow dataRow, [NotNull] IDbCommand command, System.Data.StatementType statementType, [NotNull] DataTableMapping tableMapping) { Log.Trace("CreateRowUpdatingEvent"); return(new NpgsqlRowUpdatingEventArgs(dataRow, command, statementType, tableMapping)); }
internal void AdapterInit(DataRow[] dataRows) { this._statementType = System.Data.StatementType.Batch; this._dataRows = dataRows; if ((dataRows != null) && (1 == dataRows.Length)) { this._dataRow = dataRows[0]; } }
public RowUpdatedEventArgs(DataRow dataRow, IDbCommand command, System.Data.StatementType statementType, DataTableMapping tableMapping) { switch (statementType) { case System.Data.StatementType.Select: case System.Data.StatementType.Insert: case System.Data.StatementType.Update: case System.Data.StatementType.Delete: case System.Data.StatementType.Batch: this._dataRow = dataRow; this._command = command; this._statementType = statementType; this._tableMapping = tableMapping; return; } throw ADP.InvalidStatementType(statementType); }
public RowUpdatingEventArgs(DataRow dataRow, IDbCommand command, System.Data.StatementType statementType, DataTableMapping tableMapping) { ADP.CheckArgumentNull(dataRow, "dataRow"); ADP.CheckArgumentNull(tableMapping, "tableMapping"); switch (statementType) { case System.Data.StatementType.Select: case System.Data.StatementType.Insert: case System.Data.StatementType.Update: case System.Data.StatementType.Delete: this._dataRow = dataRow; this._command = command; this._statementType = statementType; this._tableMapping = tableMapping; return; case System.Data.StatementType.Batch: throw ADP.NotSupportedStatementType(statementType, "RowUpdatingEventArgs"); } throw ADP.InvalidStatementType(statementType); }
public TITULAEventArgs(TITULADataSet.TITULARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public MJESTOTROSKAEventArgs(MJESTOTROSKADataSet.MJESTOTROSKARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public GRUPEOLAKSICAEventArgs(GRUPEOLAKSICADataSet.GRUPEOLAKSICARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public TIPOLAKSICEEventArgs(TIPOLAKSICEDataSet.TIPOLAKSICERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public ORGJEDEventArgs(ORGJEDDataSet.ORGJEDRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public DDIZDATAKEventArgs(DDIZDATAKDataSet.DDIZDATAKRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public BOLOVANJEFONDEventArgs(BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public VRSTAELEMENTEventArgs(VRSTAELEMENTDataSet.VRSTAELEMENTRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public RAD1SPREMEEventArgs(RAD1SPREMEDataSet.RAD1SPREMERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public GODINEEventArgs(GODINEDataSet.GODINERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public OSOBNIODBITAKEventArgs(OSOBNIODBITAKDataSet.OSOBNIODBITAKRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public MZOSTABLICEEventArgs(MZOSTABLICEDataSet.MZOSTABLICERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public FINPOREZEventArgs(FINPOREZDataSet.FINPOREZRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public OSRAZMJESTAJEventArgs(OSRAZMJESTAJDataSet.OSRAZMJESTAJRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public BLGVRSTEDOKEventArgs(BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public STRUCNASPREMAEventArgs(STRUCNASPREMADataSet.STRUCNASPREMARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public IRAVRSTAIZNOSAEventArgs(IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public RSVRSTEOBRACUNAEventArgs(RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public NpgsqlRowUpdatedEventArgs(DataRow dataRow, IDbCommand?command, System.Data.StatementType statementType, DataTableMapping tableMapping) : base(dataRow, command, statementType, tableMapping) { }
public STRANEKNJIZENJAEventArgs(STRANEKNJIZENJADataSet.STRANEKNJIZENJARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public OPCINAEventArgs(OPCINADataSet.OPCINARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
//never used //private string QualifiedTableName(string schema, string tableName) //{ // if (schema == null || schema.Length == 0) // { // return tableName; // } // else // { // return schema + "." + tableName; // } //} /* * private static void SetParameterValuesFromRow(NpgsqlCommand command, DataRow row) * { * foreach (NpgsqlParameter parameter in command.Parameters) * { * parameter.Value = row[parameter.SourceColumn, parameter.SourceVersion]; * } * } */ /// <summary> /// Applies the parameter information. /// </summary> /// <param name="p">The parameter.</param> /// <param name="row">The row.</param> /// <param name="statementType">Type of the statement.</param> /// <param name="whereClause">if set to <c>true</c> [where clause].</param> protected override void ApplyParameterInfo(DbParameter p, DataRow row, System.Data.StatementType statementType, bool whereClause) { var param = (NpgsqlParameter)p; param.NpgsqlDbType = (NpgsqlDbType)row[SchemaTableColumn.ProviderType]; }
//never used //private string QualifiedTableName(string schema, string tableName) //{ // if (schema == null || schema.Length == 0) // { // return tableName; // } // else // { // return schema + "." + tableName; // } //} /* * private static void SetParameterValuesFromRow(NpgsqlCommand command, DataRow row) * { * foreach (NpgsqlParameter parameter in command.Parameters) * { * parameter.Value = row[parameter.SourceColumn, parameter.SourceVersion]; * } * } */ /// <summary> /// Applies the parameter information. /// </summary> /// <param name="p">The parameter.</param> /// <param name="row">The row.</param> /// <param name="statementType">Type of the statement.</param> /// <param name="whereClause">if set to <c>true</c> [where clause].</param> protected override void ApplyParameterInfo(DbParameter p, DataRow row, System.Data.StatementType statementType, bool whereClause) { // TODO: We may need to set NpgsqlDbType, as well as other properties, on p }
public GOOBRACUNEventArgs(GOOBRACUNDataSet.GOOBRACUNRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public JEDINICAMJEREEventArgs(JEDINICAMJEREDataSet.JEDINICAMJERERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public UCENIKRSMIDENTEventArgs(UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }