FunctionMap.cs 915 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data.Entity.ModelConfiguration;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GreenTree.Nachtragsmanagement.Data.Mapping.User
  8. {
  9. public class FunctionMap : EntityTypeConfiguration<Core.Domain.User.Function>
  10. {
  11. public FunctionMap()
  12. {
  13. ToTable("Function");
  14. HasKey(f => f.Id);
  15. Property(f => f.Name);
  16. Property(f => f.Description);
  17. Property(f => f.GroupName);
  18. Property(f => f.ImageUrl);
  19. Property(f => f.RouteName);
  20. Property(f => f.IsMenuMember);
  21. Property(f => f.Plugin);
  22. Property(f => f.BaseWidth);
  23. Property(f => f.MinWidth);
  24. Property(f => f.BaseHeight);
  25. Property(f => f.MinHeight);
  26. Property(f => f.AllowMaximize);
  27. }
  28. }
  29. }