예제 #1
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     RoleName = GetColumn<string>(dr, "RoleName");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #2
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     Name = GetValue<string>(dr, "Name");
     Description = GetValue<string>(dr, "Description");
     #if EntityProperty_NoDate
     `field` = GetValue<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #3
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     PersonID = GetValue<Guid>(dr, "PersonID");
     RoleTypeID = GetValue<Guid>(dr, "RoleTypeID");
     #if EntityProperty_NoDate
     `field` = GetValue<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #4
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     NotificationPlanID = GetValue<Guid>(dr, "NotificationPlanID");
     Description = GetValue<string>(dr, "Description");
     Status = GetValue<string>(dr, "Status");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #5
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     Subject = GetValue<string>(dr, "Subject");
     Message = GetValue<string>(dr, "Message");
     NotificationID = GetValue<Guid>(dr, "NotificationID");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #6
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     Name = GetColumn<string>(dr, "Name");
     StreetAddress = GetColumn<string>(dr, "StreetAddress");
     Suburb = GetColumn<string>(dr, "Suburb");
     Postcode = GetColumn<string>(dr, "Postcode");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #7
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     GroupName = GetColumn<string>(dr, "GroupName");
     GroupDescription = GetColumn<string>(dr, "GroupDescription");
     GroupEmailRecipients = GetColumn<string>(dr, "GroupEmailRecipients");
     GroupEmailAddresses = GetColumn<string>(dr, "GroupEmailAddresses");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #8
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ProfileID = DatabaseSafeCast.Cast<Guid>(dr["ProfileID"]);
            AssignedToID = DatabaseSafeCast.Cast<Guid>(dr["AssignedToID"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #9
0
 public override void AssignData(IDataReader dr)
 {
     //TODO add the other fields to the database.
     ID = GetValue<Guid>(dr, "ID");
     Name = GetValue<string>(dr, "Name");
     Description = GetValue<string>(dr, "Description");
     SortIndex = GetValue<int>(dr, "SortIndex");
     #if EntityProperty_NoDate
     `field` = GetValue<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ApplicationFeatureID = GetValue<Guid>(dr, "ApplicationFeatureID");
            OwnerID = GetValue<Guid>(dr, "OwnerID");

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr, "`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`");
            #endif
        }
예제 #11
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     TaskID = GetColumn<Guid>(dr, "TaskID");
     Schedule = GetColumn<string>(dr, "Schedule");
     StartDate = GetDateTime(dr, "StartDate");
     Updatedby = GetColumn<string>(dr, "Updatedby");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #12
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            Type = DatabaseSafeCast.Cast<int>(dr["Type"]);
            Name = DatabaseSafeCast.Cast<string>(dr["Name"]);
            Description = DatabaseSafeCast.Cast<string>(dr["Description"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            IncidentConfigurationID = DatabaseSafeCast.Cast<Guid>(dr["IncidentConfigurationID"]);
            if (HasColumn(dr, "CompanyName"))
                CompanyName = DatabaseSafeCast.Cast<string>(dr["CompanyName"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #14
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ContactId = GetValue<Guid>(dr, "ContactId");
            ContactPersonId = GetValue<Guid>(dr, "ContactPersonId");
            DefaultPerson = GetValue<bool>(dr, "DefaultPerson");

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr, "`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`");
            #endif
        }
예제 #15
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            Subject = DatabaseSafeCast.Cast<string>(dr["Subject"]);
            Body = DatabaseSafeCast.Cast<string>(dr["Body"]);
            Type = DatabaseSafeCast.Cast<int>(dr["Type"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            Date = BusinessBase.ReadyDateForTransport(DatabaseSafeCast.Cast<DateTime>(dr["Date"]));

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #16
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ItemType = DatabaseSafeCast.Cast<int>(dr["ItemType"]);
            ItemID = DatabaseSafeCast.Cast<Guid>(dr["ItemID"]);
            Name = DatabaseSafeCast.Cast<string>(dr["Name"]);
            OwnerID = DatabaseSafeCast.Cast<Guid>(dr["OwnerID"]);
            Sequence = DatabaseSafeCast.Cast<int>(dr["Sequence"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #17
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ScopeID = DatabaseSafeCast.Cast<Guid>(dr["ScopeID"]);
            AssignedToID = DatabaseSafeCast.Cast<Guid>(dr["AssignedToID"]);
            AssignedToType = DatabaseSafeCast.Cast<byte>(dr["AssignedToType"]);
            AccessPermission = DatabaseSafeCast.Cast<byte>(dr["AccessPermission"]);
            ConsentType = DatabaseSafeCast.Cast<byte>(dr["ConsentType"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #18
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ScopeID = DatabaseSafeCast.Cast<Guid>(dr["ScopeID"]);
            AssignedToID = DatabaseSafeCast.Cast<Guid>(dr["AssignedToID"]);
            AssignedToType = DatabaseSafeCast.Cast<byte>(dr["AssignedToType"]);
            Limit = DatabaseSafeCast.Cast<int>(dr["Limit"]);
            PerTimeSpan = DatabaseSafeCast.Cast<int>(dr["PerTimeSpan"]);
            if (HasColumn(dr, "ScopeName"))
                ScopeName = DatabaseSafeCast.Cast<string>(dr["ScopeName"]);
            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ApplicationPlanID = GetValue<Guid>(dr, "ApplicationPlanID");
            FeatureID = GetValue<Guid>(dr, "FeatureID");
            FeatureType = GetValue<int>(dr, "FeatureType");
            Billable = GetValue<bool>(dr, "Billable");
            Price = GetValue<decimal>(dr, "Price");
            UnitCount = GetValue<int>(dr, "UnitCount");

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr, "`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`");
            #endif
        }
예제 #20
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            Name = DatabaseSafeCast.Cast<string>(dr["Name"]);
            DisplayName = DatabaseSafeCast.Cast<string>(dr["DisplayName"]);
            Description = DatabaseSafeCast.Cast<string>(dr["Description"]);
            if (HasColumn(dr, "ScopeType"))
                ConsentType = DatabaseSafeCast.Cast<byte>(dr["ScopeType"]);
            if (HasColumn(dr, "ConsentType"))
                ConsentType = DatabaseSafeCast.Cast<byte>(dr["ConsentType"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #21
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            LogDateTime = GetValue<DateTime>(dr, "LogDateTime");
            Operation = DatabaseSafeCast.Cast<string>(dr["Operation"]);
            Description = DatabaseSafeCast.Cast<string>(dr["Description"]);
            AdditionalDescription = DatabaseSafeCast.Cast<string>(dr["AdditionalDescription"]);
            if (HasColumn(dr, "Username"))
            {
                Username = GetValue<string>(dr, "Username");
            }

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #22
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            DisplayName = GetColumn<string>(dr, "DisplayName");
            int odo = 0;
            string odometer = dr["Odometer"].ToString();
            if (odometer.IndexOf('.') >= 0)
                int.TryParse(dr["Odometer"].ToString().Substring(0, odometer.IndexOf('.')), out odo);
            else
                int.TryParse(dr["Odometer"].ToString(), out odo);

            Odometer = odo;
            DataColumnCollection cols = dr.Table.Columns;
            if (HasColumn(dr, "EngineHrs")) EngineHrs = GetColumn<int>(dr, "EngineHrs");
            if (HasColumn(dr, "InputDeviceHrs")) InputDeviceHrs = GetColumn<int>(dr, "InputDeviceHrs");
            #if EntityProperty_NoDate
            `field` = GetColumn<`cstype`>(dr, "`field`");
            #endif
            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`");
            #endif
        }
예제 #23
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            ClientId = DatabaseSafeCast.Cast<string>(dr["ClientId"]);
            ClientSecret = DatabaseSafeCast.Cast<string>(dr["ClientSecret"]);
            ClientName = DatabaseSafeCast.Cast<string>(dr["ClientName"]);
            ClientType = DatabaseSafeCast.Cast<byte>(dr["ClientType"]);
            ClientUri = DatabaseSafeCast.Cast<string>(dr["ClientUri"]);
            ContactInfo = DatabaseSafeCast.Cast<string>(dr["ContactInfo"]);
            Legal = DatabaseSafeCast.Cast<string>(dr["Legal"]);
            Notes = DatabaseSafeCast.Cast<string>(dr["Notes"]);
            SupportedFlows = DatabaseSafeCast.Cast<string>(dr["SupportedFlows"]);
            ConsentQuery = DatabaseSafeCast.Cast<byte>(dr["ConsentQuery"]);
            TokenSigning = DatabaseSafeCast.Cast<byte>(dr["TokenSigning"]);
            RegisteredUris = DatabaseSafeCast.Cast<string>(dr["RegisteredUris"]);
            AccessTokenType = DatabaseSafeCast.Cast<byte>(dr["AccessTokenType"]);
            AccessTokenExpiration = DatabaseSafeCast.Cast<int>(dr["AccessTokenExpiration"]);
            AuthorizationCodeExpiration = DatabaseSafeCast.Cast<int>(dr["AuthorizationCodeExpiration"]);
            IdentityTokenExpiration = DatabaseSafeCast.Cast<int>(dr["IdentityTokenExpiration"]);
            IssueRefreshToken = DatabaseSafeCast.Cast<byte>(dr["IssueRefreshToken"]);
            RefreshTokenUsage = DatabaseSafeCast.Cast<byte>(dr["RefreshTokenUsage"]);
            RefreshTokenExpiration = DatabaseSafeCast.Cast<byte>(dr["RefreshTokenExpiration"]);
            AbsoluteRefreshTokenExpiration = DatabaseSafeCast.Cast<int>(dr["AbsoluteRefreshTokenExpiration"]);
            SlidingRefreshTokenExpiration = DatabaseSafeCast.Cast<int>(dr["SlidingRefreshTokenExpiration"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            ValidFrom = BusinessBase.ReadyDateForTransport(DatabaseSafeCast.Cast<DateTime>(dr["ValidFrom"]));
            ValidUntil = BusinessBase.ReadyDateForTransport(DatabaseSafeCast.Cast<DateTime>(dr["ValidUntil"]));

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }
예제 #24
0
        //# gs-103 fields added
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            Code = GetValue<string>(dr, "Code");
            Name = GetValue<string>(dr, "Name");
            FirstName = GetValue<string>(dr, "FirstName");
            LastName = GetValue<string>(dr, "LastName");
            ContactPersonID = GetValue<Guid>(dr, "ContactPersonID");
            StreetAddress = GetValue<string>(dr, "StreetAddress");
            Suburb = GetValue<string>(dr, "Suburb");
            City = GetValue<string>(dr, "City");
            Postcode = GetValue<string>(dr, "Postcode");
            State = GetValue<string>(dr, "State");
            Country = GetValue<string>(dr, "Country");

            PostalAddress = GetValue<string>(dr, "PostalAddress");
            PostalCity = GetValue<string>(dr, "PostalCity");
            PostalPostCode = GetValue<string>(dr, "PostalPostCode");
            PostalState = GetValue<string>(dr, "PostalState");
            PostalCountry = GetValue<string>(dr, "PostalCountry");

            Phone = GetValue<string>(dr, "Phone");
            DirectPhone = GetValue<string>(dr, "DirectPhone");
            Mobile = GetValue<string>(dr, "Mobile");
            Fax = GetValue<string>(dr, "Fax");
            Email = GetValue<string>(dr, "Email");
            Website = GetValue<string>(dr, "Website");
            SocialNetwork = GetValue<string>(dr, "SocialNetwork");

            JobTitle = GetValue<string>(dr, "JobTitle");
            Type = (ContactType)GetValue<byte>(dr, "Type");
            ClientType = GetValue<byte>(dr, "ClientType");
            Description = GetValue<string>(dr, "Description");

            IsPerson = GetValue<bool>(dr, "IsPerson");
            IsReseller = GetValue<bool>(dr, "IsReseller");

            SourceType = GetValue<int>(dr, "SourceType");
            SourceID = GetValue<Guid>(dr, "SourceID");
            StateID = GetValue<Guid>(dr, "StateID");

            LastContactDate = GetValue<DateTime>(dr, "LastContactDate");
            CreatedByID = GetValue<Guid>(dr, "CreatedByID");
            LastUpdateByID = GetValue<Guid>(dr, "LastUpdateByID");

            DefaultLocationID = GetValue<Guid>(dr, "DefaultLocationID");

            if (HasColumn(dr, "DefaultLocation"))
                DefaultLocation = GetValue<string>(dr, "DefaultLocation");
            if (HasColumn(dr, "ContactPersonName"))
                ContactPersonName = GetValue<string>(dr, "ContactPersonName");
            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr, "`field`");
            #endif

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`");
            #endif
        }
예제 #25
0
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            NotificationPlanID = GetValue<Guid>(dr, "NotificationPlanID");
            NotificationItemID = GetValue<Guid>(dr, "NotificationItemID");
            CRMID = GetValue<Guid>(dr, "CRMID");
            DeliveryMethod = GetValue<string>(dr, "DeliveryMethod");

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr, "`field`");
            #endif
            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`");
            #endif
        }
예제 #26
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     SMSDraftID = GetValue<Guid>(dr, "SMSDraftID");
     Subject = GetValue<string>(dr, "Subject");
     Message = GetValue<string>(dr, "Message");
     NotificationID = GetValue<Guid>(dr, "NotificationID");
     RecipientName = GetValue<string>(dr, "RecipientName");
     ToPhoneNumber = GetValue<string>(dr, "ToPhoneNumber");
     Retry = GetValue<int>(dr, "Retry");
     TimeToSend = GetDateTime(dr, "TimeToSend");
     Status = GetValue<string>(dr, "Status");
     LastRetryAt = GetDateTime(dr, "LastRetryAt");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #27
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     EmailDraftID = GetValue<Guid>(dr, "EmailDraftID");
     Subject = GetValue<string>(dr, "Subject");
     FromAddress = GetValue<string>(dr, "FromAddress");
     Message = GetValue<string>(dr, "Message");
     NotificationID = GetValue<Guid>(dr, "NotificationID");
     ToAddress = GetValue<string>(dr, "ToAddress");
     Retry = GetValue<int>(dr, "Retry");
     TimeToSend = GetDateTime(dr, "TimeToSend");
     Status = GetValue<string>(dr, "Status");
     LastRetryAt = GetDateTime(dr, "LastRetryAt");
     RecipientName = GetValue<string>(dr, "RecipientName");
     CC = GetValue<string>(dr, "CC");
     Bcc = GetValue<string>(dr, "Bcc");
     AttachmentFiles = GetValue<string>(dr, "AttachmentFiles");
     Priority = GetValue<byte>(dr, "Priority");
     #if EntityProperty_NoDate
     `field` = GetColumn<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #28
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     ID = GetValue<Guid>(dr, "ID");
     Title = GetValue<string>(dr, "Title");
     Type = (WidgetType)GetValue<int>(dr, "Type");
     Row = GetValue<int>(dr, "Row");
     Column = GetValue<int>(dr, "Column");
     RowSpan = GetValue<int>(dr, "RowSpan");
     ColumnSpan = GetValue<int>(dr, "ColumnSpan");
     #if EntityProperty_NoDate
     `field` = GetValue<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
예제 #29
0
 public override void AssignData(IDataReader dr)
 {
     base.AssignData(dr);
     Name = GetValue<string>(dr, "Name");
     Address = GetValue<string>(dr, "StreetAddress");
     Suburb = GetValue<string>(dr, "Suburb");
     Postcode = GetValue<string>(dr, "Postcode");
     //& gs-1119
     City = GetValue<string>(dr, "City");
     State = GetValue<string>(dr, "State");
     Country = GetValue<string>(dr, "Country");
     Type = GetValue<int>(dr, "Type");
     IsPrimary = GetValue<bool>(dr, "IsPrimary");
     Attention = GetValue<string>(dr, "Attention");
     Description = GetValue<string>(dr, "Description");
     Notes = GetValue<string>(dr, "Notes");
     //. gs-1119
     #if EntityProperty_NoDate
     `field` = GetValue<`cstype`>(dr, "`field`");
     #endif
     #if EntityProperty_Date
     `field` = GetDateTime(dr, "`field`");
     #endif
 }
        public override void AssignData(IDataReader dr)
        {
            base.AssignData(dr);
            Name = DatabaseSafeCast.Cast<string>(dr["Name"]);
            Description = DatabaseSafeCast.Cast<string>(dr["Description"]);
            DeviceType = DatabaseSafeCast.Cast<byte>(dr["DeviceType"]);
            Filename = DatabaseSafeCast.Cast<string>(dr["Filename"]);
            FileID = DatabaseSafeCast.Cast<Guid>(dr["FileID"]);

            #if EntityProperty_NoDate
            `field` = GetValue<`cstype`>(dr,"`field`");
            #endif

            FileCreationDate = BusinessBase.ReadyDateForTransport(DatabaseSafeCast.Cast<DateTime>(dr["FileCreationDate"]));
            FileModificationDate = BusinessBase.ReadyDateForTransport(DatabaseSafeCast.Cast<DateTime>(dr["FileModificationDate"]));

            #if EntityProperty_Date
            `field` = GetDateTime(dr, "`field`"));
            #endif
        }