1234567891011121314151617181920212223242526 |
- using System;
- using Luticate2.Auth.Auth.DataAccess.Models;
- using Luticate2.Auth.Auth.Dbo;
- using Luticate2.Auth.Utils.Business.PartialObjectCopier;
- using Luticate2.Auth.Utils.Dbo.Fields;
- using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
- using Luticate2.Auth.Utils.Dbo.Result;
-
- namespace Luticate2.Auth.Auth.Business.PartialObjectCopier
- {
- public class LuPOCGroupsToModel : LuPartialObjectCopier<LuGroupDbo, LuGroups>
- {
- public LuPOCGroupsToModel(IServiceProvider serviceProvider) : base(serviceProvider)
- {
- }
-
- public override LuResult<LuGroups> Copy(LuFieldDbo path, LuPartialFieldsDbo fields, LuGroupDbo dboFrom, LuGroups modelTo,
- LuPartialObjectCopierOptions options)
- {
- MayCopy(path, fields, modelTo, model => model.Id, () => dboFrom.Id);
- MayCopy(path, fields, modelTo, model => model.Name, () => dboFrom.Name);
-
- return LuResult<LuGroups>.Ok(modelTo);
- }
- }
- }
|