解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头
authored at
2018-05-15 21:21:05
X
using System;
namespace XControl
{
/// <summary>目标控件类型</summary>
[AttributeUsage(AttributeTargets.Class)]
public class TargetControlTypeAttribute : Attribute
{
private Type _Type;
/// <summary>目标控件类型</summary>
public Type Type
{
get { return _Type; }
set { _Type = value; }
}
/// <summary>指定目标控件类型</summary>
/// <param name="type">类型</param>
public TargetControlTypeAttribute(Type type)
{
Type = type;
}
}
}
|