示例#1
0
        /// <summary>
        /// Add an AuditRecord node to this object using the specified parameter values.  Returns the current builder instance.
        /// </summary>
        /// <param name="UserOID"></param>
        /// <param name="LocationOID"></param>
        /// <param name="ReasonForChange"></param>
        /// <param name="SourceID"></param>
        /// <param name="DateTimeStamp"></param>
        /// <param name="auditRecordBuilder"></param>
        /// <returns></returns>
        public ItemDataBuilder WithAuditRecord(string UserOID, string LocationOID, string ReasonForChange, string SourceID, DateTime DateTimeStamp, Action <AuditRecordBuilder> auditRecordBuilder)
        {
            var arb = new AuditRecordBuilder(UserOID, LocationOID, ReasonForChange, SourceID, DateTimeStamp);

            auditRecordBuilder(arb);

            itemData.AuditRecord = arb.Build();

            return(this);
        }
示例#2
0
        /// <summary>
        /// See <see cref="IAuditableBuilder{DataClass, BuilderClass}.WithAuditRecord(string, string, string, string, DateTime, Action{AuditRecordBuilder})"/> for more information.
        /// </summary>
        /// <param name="UserOID"></param>
        /// <param name="LocationOID"></param>
        /// <param name="ReasonForChange"></param>
        /// <param name="SourceID"></param>
        /// <param name="DateTimeStamp"></param>
        /// <param name="auditRecordBuilder"></param>
        /// <returns></returns>
        /// <tocexclude />
        public BuilderClass WithAuditRecord(string UserOID, string LocationOID, string ReasonForChange, string SourceID, DateTime DateTimeStamp, Action <AuditRecordBuilder> auditRecordBuilder)
        {
            var arb = new AuditRecordBuilder(UserOID, LocationOID, ReasonForChange, SourceID, DateTimeStamp);

            auditRecordBuilder(arb);

            dynamic d = thisNode;

            d.AuditRecord = arb.Build();

            return(ThisAsTSelf());
        }