Class RelationshipsService
- Namespace
- JJMasterData.Core.DataDictionary.Services
- Assembly
- JJMasterData.Core.dll
public class RelationshipsService : DataDictionaryServiceBase
- Inheritance
-
RelationshipsService
- Inherited Members
-
Constructors
RelationshipsService(IValidationDictionary, IDataDictionaryRepository, IStringLocalizer<MasterDataResources>, PanelService)
public RelationshipsService(IValidationDictionary validationDictionary, IDataDictionaryRepository dataDictionaryRepository, IStringLocalizer<MasterDataResources> stringLocalizer, PanelService panelService)
Parameters
validationDictionary
IValidationDictionary
dataDictionaryRepository
IDataDictionaryRepository
stringLocalizer
IStringLocalizer<MasterDataResources>
panelService
PanelService
Methods
DeleteAsync(string, int)
public Task DeleteAsync(string elementName, int id)
Parameters
elementName
string
id
int
Returns
- Task
SaveElementRelationship(ElementRelationship, int?, string)
public Task SaveElementRelationship(ElementRelationship elementRelationship, int? id, string elementName)
Parameters
elementRelationship
ElementRelationship
id
int?
elementName
string
Returns
- Task
public Task SaveFormElementRelationship(FormElementPanel panel, RelationshipViewType viewType, bool editModeOpenedByDefault, int id, string elementName)
Parameters
panel
FormElementPanel
viewType
RelationshipViewType
editModeOpenedByDefault
bool
id
int
elementName
string
Returns
- Task
SortAsync(string, IEnumerable<string>)
public Task SortAsync(string elementName, IEnumerable<string> relationships)
Parameters
elementName
string
relationships
IEnumerable<string>
Returns
- Task
ValidateElementRelationship(ElementRelationship, string, int?)
public Task<bool> ValidateElementRelationship(ElementRelationship elementRelationship, string elementName, int? index)
Parameters
elementRelationship
ElementRelationship
elementName
string
index
int?
Returns
- Task<bool>
ValidateFinallyAddRelation(string, ElementRelationship, string, string)
public Task<bool> ValidateFinallyAddRelation(string elementName, ElementRelationship elementRelationship, string pkColumnName, string fkColumnName)
Parameters
elementName
string
elementRelationship
ElementRelationship
pkColumnName
string
fkColumnName
string
Returns
- Task<bool>
public bool ValidatePanel(FormElementPanel panel)
Parameters
panel
FormElementPanel
Returns
- bool
ValidateRelation(string, string, string, string)
public Task<bool> ValidateRelation(string elementName, string childElementName, string pkColumnName, string fkColumnName)
Parameters
elementName
string
childElementName
string
pkColumnName
string
fkColumnName
string
Returns
- Task<bool>