public static int Insert(Tipo_LDVInfo _Tipo_LDVInfo) { //Execute the query and return the new Guid object retval= _AdoHelper.ExecuteScalar(ConnectionString,"Tipo_LDVInsert", new SqlParameter("@Descripcion", _Tipo_LDVInfo.Descripcion), new SqlParameter("@Download", _Tipo_LDVInfo.Download), new SqlParameter("@Agregable", _Tipo_LDVInfo.Agregable), new SqlParameter("@Action", _Tipo_LDVInfo.Action), new SqlParameter("@Secuencia", _Tipo_LDVInfo.Secuencia), new SqlParameter("@SyncID", _Tipo_LDVInfo.SyncID) ); return Int32.Parse(retval.ToString()); }
public static void Update(Tipo_LDVInfo _Tipo_LDVInfo) { _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "Tipo_LDVUpdate", new SqlParameter("@Cod_TipoLDV", _Tipo_LDVInfo.Cod_TipoLDV), new SqlParameter("@Descripcion", _Tipo_LDVInfo.Descripcion), new SqlParameter("@Download", _Tipo_LDVInfo.Download), new SqlParameter("@Agregable", _Tipo_LDVInfo.Agregable), new SqlParameter("@Action", _Tipo_LDVInfo.Action), new SqlParameter("@Secuencia", _Tipo_LDVInfo.Secuencia), new SqlParameter("@SyncID", _Tipo_LDVInfo.SyncID) ); }
public static void Delete(Tipo_LDVInfo _Tipo_LDVInfo) { _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "Tipo_LDVDelete", new SqlParameter("@Cod_TipoLDV", _Tipo_LDVInfo.Cod_TipoLDV) ); }
/// <summary> /// Creates a new instance of the Tipo_LDV class and populates it with data from the specified SqlDataReader. /// </summary> private static Tipo_LDVInfo MakeTipo_LDV(SqlDataReader dataReader) { Tipo_LDVInfo tipo_LDV = new Tipo_LDVInfo(); if (dataReader.IsDBNull(Cod_TipoLDV) == false) tipo_LDV.Cod_TipoLDV = dataReader.GetInt32(Cod_TipoLDV); if (dataReader.IsDBNull(Descripcion) == false) tipo_LDV.Descripcion = dataReader.GetString(Descripcion); if (dataReader.IsDBNull(Download) == false) tipo_LDV.Download = dataReader.GetDateTime(Download); if (dataReader.IsDBNull(Agregable) == false) tipo_LDV.Agregable = dataReader.GetBoolean(Agregable); if (dataReader.IsDBNull(Action) == false) tipo_LDV.Action = dataReader.GetString(Action); if (dataReader.IsDBNull(Secuencia) == false) tipo_LDV.Secuencia = dataReader.GetInt32(Secuencia); if (dataReader.IsDBNull(SyncID) == false) tipo_LDV.SyncID = dataReader.GetGuid(SyncID); if (dataReader.IsDBNull(SyncTimeStamp) == false) tipo_LDV.SyncTimeStamp = DateTime.MinValue; return tipo_LDV; }