상속: BaseEntity
예제 #1
0
파일: EntityModel.cs 프로젝트: BEXIS2/Core
 public static EntitySelectListItemModel Convert(Entity entity)
 {
     return new EntitySelectListItemModel()
     {
         Id = entity.Id,
         Name = entity.Name
     };
 }
예제 #2
0
        public static DataPermissionGridRowModel Convert(long dataId, Entity entity, Subject subject, List<int> rights)
        {
            return new DataPermissionGridRowModel()
            {
                DataId = dataId,
                EntityId = entity.Id,

                SubjectId = subject.Id,
                SubjectName = subject.Name,
                SubjectType = subject is User ? "User" : "Group",

                Rights = rights
            };
        }