コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupaacct(ref DataRow row, Glsfsetupaacct entity)
 {
     row.SetField("itemno", entity.itemno);
     row.SetField("acctno", entity.acctno);
     row.SetField("subno", entity.subno);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Glsfsetupaacct BuildGlsfsetupaacctFromRow(DataRow row)
        {
            Glsfsetupaacct entity = new Glsfsetupaacct();

            entity.itemno    = row.IsNull("itemno") ? 0 : row.Field <int>("itemno");
            entity.acctno    = row.IsNull("acctno") ? 0 : row.Field <int>("acctno");
            entity.subno     = row.IsNull("subno") ? 0 : row.Field <int>("subno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }