public static CSharpProperty ToCSharpProperty(DescribeResultSetContainer resultSetContainer)
    {
        var sqlColumn      = DescribeResultSetRowToSqlColumnConverter.Convert(resultSetContainer);
        var cSharpProperty = CSharpPropertyFactoryFromSqlColumn.ToCSharpProperty(sqlColumn);

        return(cSharpProperty);
    }
コード例 #2
0
    public void TestDataAnnotationDefinitionNumericRange()
    {
        var sqlColumn = new SqlColumn()
        {
            SqlDataType = SqlTypeNumberBase.FromBounds("int", 100, 200),
            IsNullable  = true,
            Name        = "PropertyName"
        };

        var cSharpProperty = CSharpPropertyFactoryFromSqlColumn.ToCSharpProperty(sqlColumn);

        Console.WriteLine(cSharpProperty);
    }