/// <summary>
 /// Initializes a new instance of the <see cref="PutMobileScanSetupRequest" /> class.
 /// </summary>
 /// <param name="AssessmentTypeId">The assessment type id (required).</param>
 /// <param name="FrameworkType">The framework type (required).</param>
 /// <param name="PlatformType">The platform type (required).</param>
 /// <param name="TimeZone">The time zone (required).</param>
 /// <param name="UserAccountsRequried">Indicates if user accounts are required.</param>
 /// <param name="UserAccounts">List of user accounts.</param>
 /// <param name="Notes">Notes.</param>
 /// <param name="VpnRequired">Indicates if VPN is required.</param>
 /// <param name="VpnUserName">The VPN username.</param>
 /// <param name="VpnPassword">The VPN password.</param>
 /// <param name="HasMultiFactorAuthentication">Indicates if multi-factor authentication is used.</param>
 /// <param name="MultiFactorAuthenticationNotes">Multi-factor authentication notes.</param>
 /// <param name="IntrusionDetectionSystem">Indicates if intrusion detection system is used.</param>
 /// <param name="IntrusionPreventionSystem">Indicates if intrusion prevention system is used.</param>
 /// <param name="WebApplicationFirewall">Indicates if web application firewall is used.</param>
 /// <param name="ProxyServers">Indicates if proxy servers are used.</param>
 /// <param name="LoadBalancer">Indicates if load balancer is used.</param>
 /// <param name="PreAssessmentCall">Indicates if the customer should be contacted prior to beginning the assessment.</param>
 public PutMobileScanSetupRequest(int?AssessmentTypeId = default(int?), FrameworkTypeEnum FrameworkType = default(FrameworkTypeEnum), PlatformTypeEnum PlatformType = default(PlatformTypeEnum), string TimeZone = default(string), bool?UserAccountsRequried = default(bool?), List <MobileScanUserAccount> UserAccounts = default(List <MobileScanUserAccount>), string Notes = default(string), bool?VpnRequired = default(bool?), string VpnUserName = default(string), string VpnPassword = default(string), bool?HasMultiFactorAuthentication = default(bool?), string MultiFactorAuthenticationNotes = default(string), bool?IntrusionDetectionSystem = default(bool?), bool?IntrusionPreventionSystem = default(bool?), bool?WebApplicationFirewall = default(bool?), bool?ProxyServers = default(bool?), bool?LoadBalancer = default(bool?), bool?PreAssessmentCall = default(bool?))
 {
     // to ensure "AssessmentTypeId" is required (not null)
     if (AssessmentTypeId == null)
     {
         throw new InvalidDataException("AssessmentTypeId is a required property for PutMobileScanSetupRequest and cannot be null");
     }
     else
     {
         this.AssessmentTypeId = AssessmentTypeId;
     }
     // to ensure "FrameworkType" is required (not null)
     if (FrameworkType == null)
     {
         throw new InvalidDataException("FrameworkType is a required property for PutMobileScanSetupRequest and cannot be null");
     }
     else
     {
         this.FrameworkType = FrameworkType;
     }
     // to ensure "PlatformType" is required (not null)
     if (PlatformType == null)
     {
         throw new InvalidDataException("PlatformType is a required property for PutMobileScanSetupRequest and cannot be null");
     }
     else
     {
         this.PlatformType = PlatformType;
     }
     // to ensure "TimeZone" is required (not null)
     if (TimeZone == null)
     {
         throw new InvalidDataException("TimeZone is a required property for PutMobileScanSetupRequest and cannot be null");
     }
     else
     {
         this.TimeZone = TimeZone;
     }
     this.UserAccountsRequried = UserAccountsRequried;
     this.UserAccounts         = UserAccounts;
     this.Notes       = Notes;
     this.VpnRequired = VpnRequired;
     this.VpnUserName = VpnUserName;
     this.VpnPassword = VpnPassword;
     this.HasMultiFactorAuthentication   = HasMultiFactorAuthentication;
     this.MultiFactorAuthenticationNotes = MultiFactorAuthenticationNotes;
     this.IntrusionDetectionSystem       = IntrusionDetectionSystem;
     this.IntrusionPreventionSystem      = IntrusionPreventionSystem;
     this.WebApplicationFirewall         = WebApplicationFirewall;
     this.ProxyServers      = ProxyServers;
     this.LoadBalancer      = LoadBalancer;
     this.PreAssessmentCall = PreAssessmentCall;
 }
Beispiel #2
0
        private void FieldName(MetaSqlSchema[] dataList, string schemaName, string schemaNameCSharp, string tableName, string tableNameCSharp)
        {
            MetaSqlSchema[] fieldList      = dataList.Where(item => item.SchemaName == schemaName && item.TableName == tableName).ToArray();
            List <string>   nameExceptList = new List <string>();

            nameExceptList.Add(tableName); // CSharp propery can not have same name like class.
            foreach (MetaSqlSchema field in fieldList)
            {
                string            fieldNameCSharp   = UtilGenerate.NameCSharp(field.FieldName, nameExceptList);
                FrameworkTypeEnum frameworkTypeEnum = UtilDalType.SqlTypeToFrameworkTypeEnum(field.SqlType);
                List.Add(new MetaCSharpSchema()
                {
                    Schema            = field,
                    SchemaNameCSharp  = schemaNameCSharp,
                    TableNameCSharp   = tableNameCSharp,
                    FieldNameCSharp   = fieldNameCSharp,
                    IsPrimaryKey      = field.IsPrimaryKey,
                    FrameworkTypeEnum = frameworkTypeEnum,
                });
            }
        }
Beispiel #3
0
 public SqlFieldAttribute(string fieldNameSql, FrameworkTypeEnum frameworkTypeEnum)
     : this(fieldNameSql, false, frameworkTypeEnum)
 {
 }
Beispiel #4
0
 public SqlFieldAttribute(string fieldNameSql, bool isPrimaryKey, FrameworkTypeEnum frameworkTypeEnum)
 {
     this.FieldNameSql      = fieldNameSql;
     this.IsPrimaryKey      = isPrimaryKey;
     this.FrameworkTypeEnum = frameworkTypeEnum;
 }