Subversion Repository Public Repository

ChrisCompleteCodeTrunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Newtonsoft.Json;
using System;

namespace M3Workflow.Data.Base
{
    [JsonObject(Id = "AccountDataObject", Title = "account")]
    public sealed class AccountDataObject
    {
        [JsonProperty(Order = 1, PropertyName = "companyId", Required = Required.Always)]
        public Guid CompanyId { get; set; }

        [JsonProperty(Order = 2, PropertyName = "propertyId", Required = Required.AllowNull)]
        public Guid PropertyId { get; set; }

        [JsonProperty(Order = 3, PropertyName = "accountNumber", Required = Required.Always)]
        public String AccountNumber { get; set; }

        [JsonProperty(Order = 4, PropertyName = "accountDescription", Required = Required.Always)]
        public String AccountDescription { get; set; }

        [JsonIgnore]
        public Guid DataValueField { get; set; }

        public AccountDataObject(Guid companyId, Guid propertyId, string accountNumber, string accountDescription)
        {
            this.CompanyId = companyId;
            this.PropertyId = propertyId;
            this.AccountNumber = accountNumber;
            this.AccountDescription = accountDescription;
            this.DataValueField = Guid.NewGuid();
        }

    }
}

Commits for ChrisCompleteCodeTrunk/M3Workflow/M3Workflow.Data/Base/AccountDataObject.cs

Diff revisions: vs.
Revision Author Commited Message
1 BBDSCHRIS picture BBDSCHRIS Wed 22 Aug, 2018 20:08:03 +0000