示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaealistvend(ref DataRow row, Saealistvend entity)
 {
     row.SetField("listtype", entity.listtype);
     row.SetField("listvalue", entity.listvalue);
     row.SetField("namedesc", entity.namedesc);
     row.SetField("venduser", entity.venduser);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Saealistvend BuildSaealistvendFromRow(DataRow row)
        {
            Saealistvend entity = new Saealistvend();

            entity.listtype  = row.IsNull("listtype") ? string.Empty : row.Field <string>("listtype");
            entity.listvalue = row.IsNull("listvalue") ? string.Empty : row.Field <string>("listvalue");
            entity.namedesc  = row.IsNull("namedesc") ? string.Empty : row.Field <string>("namedesc");
            entity.venduser  = row.IsNull("venduser") ? string.Empty : row.Field <string>("venduser");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }