public static List <BatchQuizMap> ToListOfBatchQuizMap(this System.Data.IDataReader reader) { using (reader) { var result = new List <BatchQuizMap>(); var obj = new BatchQuizMap(); while (reader.Read()) { obj = new BatchQuizMap(); 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.QuizID = reader["QuizID"] != DBNull.Value ? (string)reader["QuizID"] : 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); } }
public BatchQuizMap EditBatchQuizMapping(BatchQuizMap obj) { return(_db.EditBatchQuizMapping(obj)); }
public BatchQuizMap AddBatchQuizMapping(BatchQuizMap obj) { return(_db.AddBatchQuizMapping(obj)); }