Beispiel #1
0
        public static Aricloadaretsetcriteria BuildAricloadaretsetcriteriaFromRow(DataRow row)
        {
            Aricloadaretsetcriteria entity = new Aricloadaretsetcriteria();

            entity.jrnlno    = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.setno     = row.IsNull("setno") ? 0 : row.Field <int>("setno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAricloadaretsetcriteria(ref DataRow row, Aricloadaretsetcriteria entity)
 {
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("setno", entity.setno);
     row.SetField("userfield", entity.userfield);
 }