コード例 #1
0
ファイル: GetTopic.cs プロジェクト: shadowmint/pangul
        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");
        }
コード例 #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);
            }
        }
コード例 #3
0
 public void DeriveProperties()
 {
     Derived.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion");
     Derived.QuestionId = this.DeriveProperty(() => long.Parse(QuestionId), "QuestionId");
 }
コード例 #4
0
ファイル: UpdateQuestion.cs プロジェクト: shadowmint/pangul
 public void DeriveProperties()
 {
     Derived.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion");
 }