コード例 #1
0
        /// <summary>
        /// Build a class from a database row
        /// </summary>
        public static Oeeh BuildOeehFromRow(DataRow row)
        {
            var entity = BuildOeehBaseFromRow <Oeeh>(row);

            if (entity != null)
            {
                var childRowP_ttblarsc = row.GetChildRows("P_ttblarsc").FirstOrDefault();
                if (childRowP_ttblarsc != null)
                {
                    entity.arsces = (Arsc)SetKeyFields(entity, Arsc.BuildArscFromRow(childRowP_ttblarsc), "cono,custno", "cono,custno");
                }
                var childRowP_ttblarss = row.GetChildRows("P_ttblarss").FirstOrDefault();
                if (childRowP_ttblarss != null)
                {
                    entity.arsses = (Arss)SetKeyFields(entity, Arss.BuildArssFromRow(childRowP_ttblarss), "cono,custno,shipto", "cono,custno,shipto");
                }
            }
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArsc(ref DataRow row, Arsc entity)
 {
     UpdateRowFromArscBase(ref row, entity);
 }
コード例 #3
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, Arsc entity)
 {
     ArscBase.BuildMinimalRow(ref row, entity);
 }