Ejemplo n.º 1
0
        public static List <BatchUserMap> ToListOfBatchUserMap(this System.Data.IDataReader reader)
        {
            using (reader)
            {
                var result = new List <BatchUserMap>();
                var obj    = new BatchUserMap();
                while (reader.Read())
                {
                    obj                  = new BatchUserMap();
                    obj.ID               = reader["ID"] != DBNull.Value ? (string)reader["ID"] : default(string);
                    obj.CompanyID        = reader["CompanyID"] != DBNull.Value ? (string)reader["CompanyID"] : null;
                    obj.BatchID          = reader["BatchID"] != DBNull.Value ? (string)reader["BatchID"] : null;
                    obj.UserID           = reader["UserID"] != DBNull.Value ? (string)reader["UserID"] : null;
                    obj.OtherDetails     = reader["OtherDetails"] != DBNull.Value ? (string)reader["OtherDetails"] : null;
                    obj.CreationDate     = reader["CreationDate"] != DBNull.Value ? (long?)reader["CreationDate"] : null;
                    obj.CreationTime     = reader["CreationTime"] != DBNull.Value ? (long?)reader["CreationTime"] : null;
                    obj.ModificationDate = reader["ModificationDate"] != DBNull.Value ? (long?)reader["ModificationDate"] : null;
                    obj.CreatedBy        = reader["CreatedBy"] != DBNull.Value ? (string)reader["CreatedBy"] : null;
                    obj.ModifiedBy       = reader["ModifiedBy"] != DBNull.Value ? (string)reader["ModifiedBy"] : null;
                    obj.ModificationTime = reader["ModificationTime"] != DBNull.Value ? (long?)reader["ModificationTime"] : null;
                    obj.IsActive         = reader["IsActive"] != DBNull.Value ? (bool?)reader["IsActive"] : null;

                    result.Add(obj);
                }
                return(result);
            }
        }
Ejemplo n.º 2
0
 public BatchUserMap EditBatchUserMapping(BatchUserMap obj)
 {
     return(_db.EditBatchUserMapping(obj));
 }
Ejemplo n.º 3
0
 public BatchUserMap AddBatchUserMapping(BatchUserMap obj)
 {
     return(_db.AddBatchUserMapping(obj));
 }