纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
549 B

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NFine.Data.Extensions
  7. {
  8. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
  9. public class PrimaryKeyAttribute : Attribute
  10. {
  11. public PrimaryKeyAttribute()
  12. {
  13. }
  14. public PrimaryKeyAttribute(string name)
  15. {
  16. _name = name;
  17. }
  18. private string _name; public virtual string Name { get { return _name; } set { _name = value; } }
  19. }
  20. }