Field.cs 451 B

123456789101112131415161718
  1. using System;
  2. using System.Data;
  3. namespace LJLib.DAL.SQL
  4. {
  5. internal sealed class Field : Attribute
  6. {
  7. public Field(string name, SqlDbType dbType, bool isPrimaryKey)
  8. {
  9. this.Name = name;
  10. this.DbType = dbType;
  11. IsPrimaryKey = isPrimaryKey;
  12. }
  13. public string Name { get; set; }
  14. public SqlDbType DbType { get; set; }
  15. public bool IsPrimaryKey { get; set; }
  16. }
  17. }