Example #1
0
        public void DeriveProperties()
        {
            if (TopicId != null)
            {
                DerivedProperties.TopicId = this.DeriveProperty(() => long.Parse(TopicId), "TopicId");
            }

            if (TopicName != null)
            {
                DerivedProperties.TopicName   = this.DeriveProperty(() => TopicName.Trim().ToLowerInvariant(), "TopicName");
                DerivedProperties.QueryByName = true;
            }

            DerivedProperties.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion");
        }
Example #2
0
        public void DeriveProperties()
        {
            try
            {
                Derived.RowVersion = PangulRowVersion.GetBytes(RowVersion);
            }
            catch (Exception error)
            {
                throw new CommandValidationException(CommandValidationType.InvalidProperty, "RowVersion", error);
            }

            try
            {
                Derived.QuestionId = long.Parse(QuestionId);
            }
            catch (Exception error)
            {
                throw new CommandValidationException(CommandValidationType.InvalidProperty, "QuestionId", error);
            }
        }
Example #3
0
 public void DeriveProperties()
 {
     Derived.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion");
     Derived.QuestionId = this.DeriveProperty(() => long.Parse(QuestionId), "QuestionId");
 }
Example #4
0
 public void DeriveProperties()
 {
     Derived.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion");
 }