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"); }
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); } }
public void DeriveProperties() { Derived.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion"); Derived.QuestionId = this.DeriveProperty(() => long.Parse(QuestionId), "QuestionId"); }
public void DeriveProperties() { Derived.RowVersion = this.DeriveProperty(() => PangulRowVersion.GetBytes(RowVersion), "RowVersion"); }