Beispiel #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;
        }
        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;
        }
Beispiel #3
0
 protected VfpExpression(VfpExpressionKind expressionKind, TypeUsage resultType)
 {
     ExpressionKind = ArgumentUtility.CheckIsDefined("expressionKind", expressionKind);
     ResultType     = ArgumentUtility.CheckNotNull("resultType", resultType);
 }
Beispiel #4
0
        public IDatabase GetDatabase(DatabaseType databaseType)
        {
            ArgumentUtility.CheckIsDefined("databaseType", databaseType);

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