public static CSharpProperty ToCSharpProperty(DescribeResultSetContainer resultSetContainer) { var sqlColumn = DescribeResultSetRowToSqlColumnConverter.Convert(resultSetContainer); var cSharpProperty = CSharpPropertyFactoryFromSqlColumn.ToCSharpProperty(sqlColumn); return(cSharpProperty); }
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); }