Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column-Annotation features doc #82

Open
Ahoo-Wang opened this issue Jul 29, 2019 · 0 comments
Open

Column-Annotation features doc #82

Ahoo-Wang opened this issue Jul 29, 2019 · 0 comments

Comments

@Ahoo-Wang
Copy link
Member

Ahoo-Wang commented Jul 29, 2019

    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class ColumnAttribute : Attribute
    {
        public ColumnAttribute()
        {
        }

        public ColumnAttribute(string name)
        {
            Name = name;
        }

        public int? Ordinal { get; set; }
        public PropertyInfo Property { get; set; }
        public Type FieldType { get; set; }
        public Func<object, object> GetPropertyValue { get; set; }
        public string Name { get; set; }
        public bool IsPrimaryKey { get; set; }
        public bool IsAutoIncrement { get; set; }
        public String Alias { get; set; } = SmartSqlBuilder.DEFAULT_ALIAS;
        public String TypeHandler { get; set; }
        public ITypeHandler Handler { get; set; }
    }

-> https://github.com/Smart-Kit/SmartSql-Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant