public override void CreateEntities(PxMetaModel.PcAxisMetabaseEntities context) { if (IsNew) { base.CreateEntities(context); PxMetaModel.FootnoteContent footnoteContent = new PxMetaModel.FootnoteContent(); footnoteContent.MainTable = MainTable.TableId; footnoteContent.Contents = Content.Content; footnoteContent.FootnoteNo = FootnoteNo; footnoteContent.UserId = System.Security.Principal.WindowsIdentity.GetCurrent().Name; footnoteContent.LogDate = DateTime.Now; context.AddToFootnoteContents(footnoteContent); } else { base.UpdateEntities(context); } }
public override void CreateEntities(PxMetaModel.PcAxisMetabaseEntities context) { if (IsNew) { base.CreateEntities(context); PxMetaModel.FootnoteContent footnoteContent = new PxMetaModel.FootnoteContent(); footnoteContent.MainTable = MainTable.TableId; footnoteContent.Contents = Content.Content; footnoteContent.FootnoteNo = FootnoteNo; footnoteContent.UserId = System.Security.Principal.WindowsIdentity.GetCurrent().Name; footnoteContent.LogDate = DateTime.Now; context.AddToFootnoteContents(footnoteContent); } else { base.UpdateEntities(context); } }