コード例 #1
0
        public Database(string displayName, string providerName, DatabaseType type, bool allowCustomSchemaSql)
        {
            ArgumentUtility.CheckNotNullOrEmpty("displayName", displayName);
            ArgumentUtility.CheckNotNullOrEmpty("providerName", providerName);
            ArgumentUtility.CheckIsDefined("type", type);

            this.DisplayName          = displayName;
            this.ProviderName         = providerName;
            this.Type                 = type;
            this.AllowCustomSchemaSql = allowCustomSchemaSql;
        }
コード例 #2
0
        public AssociationSchema(string associationName, string tableName, string columnName, string relatedTableName, string relatedColumnName, AssociationType associationType)
        {
            ArgumentUtility.CheckNotNullOrEmpty("associationName", associationName);
            ArgumentUtility.CheckNotNullOrEmpty("tableName", tableName);
            ArgumentUtility.CheckNotNullOrEmpty("columnName", columnName);
            ArgumentUtility.CheckNotNullOrEmpty("relatedTableName", relatedTableName);
            ArgumentUtility.CheckNotNullOrEmpty("relatedColumnName", relatedColumnName);
            ArgumentUtility.CheckIsDefined("associationType", associationType);

            this.AssociationName   = associationName;
            this.TableName         = tableName;
            this.ColumnName        = columnName;
            this.RelatedTableName  = relatedTableName;
            this.RelatedColumnName = relatedColumnName;
            this.AssociationType   = associationType;
        }
コード例 #3
0
 protected VfpExpression(VfpExpressionKind expressionKind, TypeUsage resultType)
 {
     ExpressionKind = ArgumentUtility.CheckIsDefined("expressionKind", expressionKind);
     ResultType     = ArgumentUtility.CheckNotNull("resultType", resultType);
 }
コード例 #4
0
        public IDatabase GetDatabase(DatabaseType databaseType)
        {
            ArgumentUtility.CheckIsDefined("databaseType", databaseType);

            return(this.Databases.Where(x => x.Type == databaseType).FirstOrDefault());
        }