C# Class Quince.Admin.Core.Managers.EntityManager

Mostra file Open project: occrp/public-person-profiler

Public Methods

Method Description
AddEntityAsync ( EntityAddEditModel entityModel ) : Task
AddEntityRelation ( AddEntityRelationModel addEntityRelationModel ) : Task
CheckEntityByAttributeNameAndValue ( int entityType, string name, string value, AdminDbContext context = null ) : bool
DeleteEntityAsync ( long id ) : Task
EditEntityAsync ( EntityAddEditModel entityModel ) : Task
GetDateAmount ( int entityId, int entityCode, int relationEntityCode ) : IEnumerable
GetEntities ( DTRequest request ) : DTResponse
GetEntities ( string query ) : IEnumerable
GetEntity ( long id ) : EntityDisplayModel
GetEntityAmount ( int entityId, int entityCode, int relationEntityCode ) : IEnumerable
GetEntityEditModel ( long id ) : EntityAddEditModel
GetEntityRelationModel ( long id ) : AddEntityRelationModel
GetEntityTableModel ( long id ) : EntityTableModel
ValidateEntity ( EntityAddEditModel entity, Response response = null ) : Response

Private Methods

Method Description
ValidateEntityRelation ( AddEntityRelationModel addEntityRelationModel, Response response = null ) : Response

Method Details

AddEntityAsync() public static method

public static AddEntityAsync ( EntityAddEditModel entityModel ) : Task
entityModel Quince.Admin.Core.Models.Entity.EntityAddEditModel
return Task

AddEntityRelation() public static method

public static AddEntityRelation ( AddEntityRelationModel addEntityRelationModel ) : Task
addEntityRelationModel Quince.Admin.Core.Models.Entity.AddEntityRelationModel
return Task

CheckEntityByAttributeNameAndValue() public static method

public static CheckEntityByAttributeNameAndValue ( int entityType, string name, string value, AdminDbContext context = null ) : bool
entityType int
name string
value string
context Quince.Admin.Core.Contexes.AdminDbContext
return bool

DeleteEntityAsync() public static method

public static DeleteEntityAsync ( long id ) : Task
id long
return Task

EditEntityAsync() public static method

public static EditEntityAsync ( EntityAddEditModel entityModel ) : Task
entityModel Quince.Admin.Core.Models.Entity.EntityAddEditModel
return Task

GetDateAmount() public static method

public static GetDateAmount ( int entityId, int entityCode, int relationEntityCode ) : IEnumerable
entityId int
entityCode int
relationEntityCode int
return IEnumerable

GetEntities() public static method

public static GetEntities ( DTRequest request ) : DTResponse
request Quince.Admin.Core.Models.DataTables.DTRequest
return Quince.Admin.Core.Models.DataTables.DTResponse

GetEntities() public static method

public static GetEntities ( string query ) : IEnumerable
query string
return IEnumerable

GetEntity() public static method

public static GetEntity ( long id ) : EntityDisplayModel
id long
return Quince.Admin.Core.Models.Entity.EntityDisplayModel

GetEntityAmount() public static method

public static GetEntityAmount ( int entityId, int entityCode, int relationEntityCode ) : IEnumerable
entityId int
entityCode int
relationEntityCode int
return IEnumerable

GetEntityEditModel() public static method

public static GetEntityEditModel ( long id ) : EntityAddEditModel
id long
return Quince.Admin.Core.Models.Entity.EntityAddEditModel

GetEntityRelationModel() public static method

public static GetEntityRelationModel ( long id ) : AddEntityRelationModel
id long
return Quince.Admin.Core.Models.Entity.AddEntityRelationModel

GetEntityTableModel() public static method

public static GetEntityTableModel ( long id ) : EntityTableModel
id long
return Quince.Admin.Core.Models.Entity.EntityTableModel

ValidateEntity() public static method

public static ValidateEntity ( EntityAddEditModel entity, Response response = null ) : Response
entity Quince.Admin.Core.Models.Entity.EntityAddEditModel
response Response
return Response