using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace Ant.ORM { /// /// 做Like查询 /// [AttributeUsage(AttributeTargets.Property)] public class FieldLikeAttribute : Attribute { private string name; /// /// 列名 /// public string Name { get { return name; } set { name = value; } } private DbType columndbtype; /// /// 类型 /// public DbType ColumnDbType { get { return columndbtype; } set { columndbtype = value; } } public FieldLikeAttribute(string name, DbType dbType) { this.name = name; this.ColumnDbType = dbType; } } }