Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAosystemmenuitemnew(ref DataRow row, Aosystemmenuitemnew entity)
 {
     row.SetField("copymenuset", entity.copymenuset);
     row.SetField("copyfunctionname", entity.copyfunctionname);
     row.SetField("trmgrlang", entity.trmgrlang);
     row.SetField("menuset", entity.menuset);
     row.SetField("functionname", entity.functionname);
     row.SetField("windowtitle", entity.windowtitle);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Aosystemmenuitemnew BuildAosystemmenuitemnewFromRow(DataRow row)
        {
            Aosystemmenuitemnew entity = new Aosystemmenuitemnew();

            entity.copymenuset      = row.IsNull("copymenuset") ? string.Empty : row.Field <string>("copymenuset");
            entity.copyfunctionname = row.IsNull("copyfunctionname") ? string.Empty : row.Field <string>("copyfunctionname");
            entity.trmgrlang        = row.IsNull("trmgrlang") ? string.Empty : row.Field <string>("trmgrlang");
            entity.menuset          = row.IsNull("menuset") ? string.Empty : row.Field <string>("menuset");
            entity.functionname     = row.IsNull("functionname") ? string.Empty : row.Field <string>("functionname");
            entity.windowtitle      = row.IsNull("windowtitle") ? string.Empty : row.Field <string>("windowtitle");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }