Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSleeproderrorholdcd(ref DataRow row, Sleeproderrorholdcd entity)
 {
     row.SetField("errorcd", entity.errorcd);
     row.SetField("codetype", entity.codetype);
     row.SetField("descrip", entity.descrip);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Sleeproderrorholdcd BuildSleeproderrorholdcdFromRow(DataRow row)
        {
            Sleeproderrorholdcd entity = new Sleeproderrorholdcd();

            entity.errorcd   = row.IsNull("errorcd") ? string.Empty : row.Field <string>("errorcd");
            entity.codetype  = row.IsNull("codetype") ? string.Empty : row.Field <string>("codetype");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }