예제 #1
0
 public static BranchSettings.BranchGroup ToModel(this BranchGroup branch)
 {
     if (branch == null)
     {
         return(null);
     }
     return(new BranchSettings.BranchGroup
     {
         GroupName = branch.GroupName,
         UpstreamMergePolicy = Enum.TryParse <UpstreamMergePolicy>(branch.UpstreamMergePolicy, out var mergePolicy)
             ? mergePolicy
             : UpstreamMergePolicy.None,
         BranchType = Enum.TryParse <BranchGroupType>(branch.BranchType, out var branchType)
             ? branchType
             : BranchGroupType.Feature,
     });
예제 #2
0
 private static BranchSettings.BranchGroup EfBranchGroupToModel(BranchGroup branch)
 {
     return(branch.ToModel());
 }