示例#1
0
 public override int Update(DataSet dataSet)
 {
     if (UpdateCommand != null)
     {
         InnerDataAdapter.UpdateCommand = ((GlimpseProfileDbCommand)UpdateCommand).Inner;
     }
     if (InsertCommand != null)
     {
         InnerDataAdapter.InsertCommand = ((GlimpseProfileDbCommand)InsertCommand).Inner;
     }
     if (DeleteCommand != null)
     {
         InnerDataAdapter.DeleteCommand = ((GlimpseProfileDbCommand)DeleteCommand).Inner;
     }
     return(InnerDataAdapter.Update(dataSet));
 }
示例#2
0
        public override int Update(DataSet dataSet)
        {
            if (UpdateCommand != null)
            {
                InnerDataAdapter.UpdateCommand = RetrieveBaseType(UpdateCommand);
            }

            if (InsertCommand != null)
            {
                InnerDataAdapter.InsertCommand = RetrieveBaseType(InsertCommand);
            }

            if (DeleteCommand != null)
            {
                InnerDataAdapter.DeleteCommand = RetrieveBaseType(DeleteCommand);
            }

            return(InnerDataAdapter.Update(dataSet));
        }