Example #1
0
 /// <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];
     }
 }
 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 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);
 }
Example #6
0
        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 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);
        }
Example #8
0
 public TITULAEventArgs(TITULADataSet.TITULARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #9
0
 public MJESTOTROSKAEventArgs(MJESTOTROSKADataSet.MJESTOTROSKARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #10
0
 public GRUPEOLAKSICAEventArgs(GRUPEOLAKSICADataSet.GRUPEOLAKSICARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #11
0
 public TIPOLAKSICEEventArgs(TIPOLAKSICEDataSet.TIPOLAKSICERow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #12
0
 public ORGJEDEventArgs(ORGJEDDataSet.ORGJEDRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #13
0
 public DDIZDATAKEventArgs(DDIZDATAKDataSet.DDIZDATAKRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #14
0
 public BOLOVANJEFONDEventArgs(BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #15
0
 public VRSTAELEMENTEventArgs(VRSTAELEMENTDataSet.VRSTAELEMENTRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #16
0
 public RAD1SPREMEEventArgs(RAD1SPREMEDataSet.RAD1SPREMERow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #17
0
 public GODINEEventArgs(GODINEDataSet.GODINERow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #18
0
 public OSOBNIODBITAKEventArgs(OSOBNIODBITAKDataSet.OSOBNIODBITAKRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #19
0
 public MZOSTABLICEEventArgs(MZOSTABLICEDataSet.MZOSTABLICERow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #20
0
 public FINPOREZEventArgs(FINPOREZDataSet.FINPOREZRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #21
0
 public OSRAZMJESTAJEventArgs(OSRAZMJESTAJDataSet.OSRAZMJESTAJRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #22
0
 public BLGVRSTEDOKEventArgs(BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #23
0
 public STRUCNASPREMAEventArgs(STRUCNASPREMADataSet.STRUCNASPREMARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #24
0
 public IRAVRSTAIZNOSAEventArgs(IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #25
0
 public RSVRSTEOBRACUNAEventArgs(RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #26
0
 public NpgsqlRowUpdatedEventArgs(DataRow dataRow, IDbCommand?command, System.Data.StatementType statementType,
                                  DataTableMapping tableMapping)
     : base(dataRow, command, statementType, tableMapping)
 {
 }
Example #27
0
 public STRANEKNJIZENJAEventArgs(STRANEKNJIZENJADataSet.STRANEKNJIZENJARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #28
0
 public OPCINAEventArgs(OPCINADataSet.OPCINARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #29
0
        //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];
        }
Example #30
0
        //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
        }
Example #31
0
 public GOOBRACUNEventArgs(GOOBRACUNDataSet.GOOBRACUNRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #32
0
 public JEDINICAMJEREEventArgs(JEDINICAMJEREDataSet.JEDINICAMJERERow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #33
0
 public UCENIKRSMIDENTEventArgs(UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }