FunctionMap.cs 835 B

123456789101112131415161718192021222324252627282930
  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.BaseWidth);
  21. Property(f => f.MinWidth);
  22. Property(f => f.BaseHeight);
  23. Property(f => f.MinHeight);
  24. Property(f => f.AllowMaximize);
  25. }
  26. }
  27. }