コード例 #1
0
 public static NavigationRequest NavigateToDetails(string detailAlias, string id, IParent?parent)
 {
     return(new NavigationRequest(detailAlias)
     {
         ParentPath = parent?.GetParentPath(),
         Id = id,
         IsEdit = true
     });
 }
コード例 #2
0
 public ReorderModel(string?beforeId, string id, IParent?parent)
 {
     BeforeId = beforeId;
     Subject  = new EntityDescriptorModel
     {
         Id         = id,
         ParentPath = parent?.GetParentPath()?.ToPathString()
     };
 }
コード例 #3
0
 public static NavigationRequest NavigateToCollection(string collectionAlias, IParent?parent)
 {
     return(new NavigationRequest(collectionAlias)
     {
         ParentPath = parent?.GetParentPath(),
         IsEdit = true,
         IsList = true
     });
 }
コード例 #4
0
 public static NavigationRequest NavigateToEntity(string collectionAlias, string id, IParent?parent)
 {
     return(new NavigationRequest(collectionAlias)
     {
         Id = id,
         ParentPath = parent?.GetParentPath(),
         IsEdit = true
     });
 }
コード例 #5
0
 public static NavigationRequest NavigateToCreateNewEntity(string collectionAlias, IParent?parent, Type?entityVariant = null)
 {
     return(new NavigationRequest(collectionAlias)
     {
         ParentPath = parent?.GetParentPath(),
         IsEdit = true,
         IsNew = true,
         VariantAlias = entityVariant == null ? null : AliasHelper.GetEntityVariantAlias(entityVariant)
     });
 }
コード例 #6
0
 public ParentQueryModel(IParent?parent)
 {
     ParentPath = parent?.GetParentPath()?.ToPathString();
 }
コード例 #7
0
 public DeleteModel(IParent?parent)
 {
     ParentPath = parent?.GetParentPath()?.ToPathString();
 }