Exemplo n.º 1
0
        public override DataRow CreateDataRow(DataTable dtSample)
        {
            try
            {
                DataRow dr = dtSample.NewRow();

                EnsureExternalState();

                dr["GroupId"] = this.GroupId;
                DataCopy.SetNullableColumn(dr, "ParentGroupId", this.ParentGroupId.Value);
                dr["SvrGroupId"]    = this.SvrGroupId;
                dr["UpdateId"]      = this.UpdateId;
                dr["Type"]          = this.Type;
                dr["Sort"]          = this.Sort.Value;
                dr["Active"]        = this.Active.Value;
                dr["ExternalState"] = this.ExternalState;

                return(dr);
            }
            catch (Exception excp)
            {
                m_logger.Excp(excp, "GroupLn.CreateDataRow() ERROR");
                throw;
            }
        }
Exemplo n.º 2
0
        public override DataRow CreateDataRow(DataTable dtSample)
        {
            try
            {
                DataRow dr = dtSample.NewRow();

                dr["string_id"] = this.StringId;
                dr["category"]  = this.Category;
                dr["Tag"]       = this.Tag;
                dr["Language"]  = this.Language;
                dr["update_id"] = this.UpdateId;
                DataCopy.SetNullableColumn(dr, "object_id", this.ObjectId);
                dr["Text"] = this.Text;

                return(dr);
            }
            catch (Exception excp)
            {
                m_logger.Excp(excp, "GroupLn.CreateDataRow() ERROR");
                throw;
            }
        }