版博士V2.0程序
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 2 gadiem
1234567891011121314151617181920
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Models
  8. {
  9. [SugarIndex("index_{table}_code", nameof(Role.Code), OrderByType.Asc, isUnique: true)]
  10. public class Role:BaseTable
  11. {
  12. [SugarColumn(Length = 16)]
  13. public string Code { get; set; }
  14. public string Name { get; set; }
  15. [Navigate(typeof(RoleRightMap), nameof(RoleRightMap.RoleId), nameof(RoleRightMap.RightId))]//注意顺序
  16. public List<Right> RightList { get; set; }
  17. }
  18. }