![]() |
Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Entities. More...
Public Member Functions | |
| EntityView | GetEntityView () |
| Creates meta information of "entity" entity. More... | |
| long | Count () |
| Counts the number of entities. More... | |
| IEnumerable< MixERP.Net.Entities.Core.Entity > | Get () |
| Returns collection of entity for export. More... | |
| MixERP.Net.Entities.Core.Entity | Get (int entityId) |
| Returns an instance of entity. More... | |
| IEnumerable< MixERP.Net.Entities.Core.Entity > | Get ([FromUri] int[] entityIds) |
| IEnumerable< MixERP.Net.Entities.Core.Entity > | GetPagedResult () |
| Creates a paginated collection containing 25 entities on each page, sorted by the property EntityId. More... | |
| IEnumerable< MixERP.Net.Entities.Core.Entity > | GetPagedResult (long pageNumber) |
| Creates a paginated collection containing 25 entities on each page, sorted by the property EntityId. More... | |
| long | CountWhere ([FromBody]dynamic filters) |
| Counts the number of entities using the supplied filter(s). More... | |
| IEnumerable< MixERP.Net.Entities.Core.Entity > | GetWhere (long pageNumber, [FromBody]dynamic filters) |
| Creates a filtered and paginated collection containing 25 entities on each page, sorted by the property EntityId. More... | |
| long | CountFiltered (string filterName) |
| Counts the number of entities using the supplied filter name. More... | |
| IEnumerable< MixERP.Net.Entities.Core.Entity > | GetFiltered (long pageNumber, string filterName) |
| Creates a filtered and paginated collection containing 25 entities on each page, sorted by the property EntityId. More... | |
| IEnumerable< DisplayField > | GetDisplayFields () |
| Displayfield is a lightweight key/value collection of entities. More... | |
| IEnumerable< PetaPoco.CustomField > | GetCustomFields () |
| A custom field is a user defined field for entities. More... | |
| IEnumerable< PetaPoco.CustomField > | GetCustomFields (string resourceId) |
| A custom field is a user defined field for entities. More... | |
| void | AddOrEdit ([FromBody]Newtonsoft.Json.Linq.JArray form) |
| Adds or edits your instance of Entity class. More... | |
| void | Add (MixERP.Net.Entities.Core.Entity entity) |
| Adds your instance of Entity class. More... | |
| void | Edit (int entityId, [FromBody] MixERP.Net.Entities.Core.Entity entity) |
| Edits existing record with your instance of Entity class. More... | |
| List< object > | BulkImport ([FromBody]dynamic collection) |
| Adds or edits multiple instances of Entity class. More... | |
| void | Delete (int entityId) |
| Deletes an existing instance of Entity class via EntityId. More... | |
Properties | |
| long | LoginId [get] |
| int | UserId [get] |
| int | OfficeId [get] |
| string | Catalog [get] |
Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Entities.
| void MixERP.Net.Api.Core.EntityController.Add | ( | MixERP.Net.Entities.Core.Entity | entity | ) |
Adds your instance of Entity class.
| entity | Your instance of entities class to add. |
| void MixERP.Net.Api.Core.EntityController.AddOrEdit | ( | [FromBody] Newtonsoft.Json.Linq.JArray | form | ) |
Adds or edits your instance of Entity class.
| entity | Your instance of entities class to add or edit. |
| List<object> MixERP.Net.Api.Core.EntityController.BulkImport | ( | [FromBody] dynamic | collection | ) |
Adds or edits multiple instances of Entity class.
| collection | Your collection of Entity class to bulk import. |
| MixERPException | Thrown when your any Entity class in the collection is invalid or malformed. |
| long MixERP.Net.Api.Core.EntityController.Count | ( | ) |
Counts the number of entities.
| long MixERP.Net.Api.Core.EntityController.CountFiltered | ( | string | filterName | ) |
Counts the number of entities using the supplied filter name.
| filterName | The named filter. |
| long MixERP.Net.Api.Core.EntityController.CountWhere | ( | [FromBody] dynamic | filters | ) |
Counts the number of entities using the supplied filter(s).
| filters | The list of filter conditions. |
| void MixERP.Net.Api.Core.EntityController.Delete | ( | int | entityId | ) |
Deletes an existing instance of Entity class via EntityId.
| entityId | Enter the value for EntityId in order to find and delete the existing record. |
| void MixERP.Net.Api.Core.EntityController.Edit | ( | int | entityId, |
| [FromBody] MixERP.Net.Entities.Core.Entity | entity | ||
| ) |
Edits existing record with your instance of Entity class.
| entity | Your instance of Entity class to edit. |
| entityId | Enter the value for EntityId in order to find and edit the existing record. |
| IEnumerable<MixERP.Net.Entities.Core.Entity> MixERP.Net.Api.Core.EntityController.Get | ( | ) |
Returns collection of entity for export.
| MixERP.Net.Entities.Core.Entity MixERP.Net.Api.Core.EntityController.Get | ( | int | entityId | ) |
Returns an instance of entity.
| entityId | Enter EntityId to search for. |
| IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Core.EntityController.GetCustomFields | ( | ) |
A custom field is a user defined field for entities.
| IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Core.EntityController.GetCustomFields | ( | string | resourceId | ) |
A custom field is a user defined field for entities.
| IEnumerable<DisplayField> MixERP.Net.Api.Core.EntityController.GetDisplayFields | ( | ) |
Displayfield is a lightweight key/value collection of entities.
| EntityView MixERP.Net.Api.Core.EntityController.GetEntityView | ( | ) |
Creates meta information of "entity" entity.
| IEnumerable<MixERP.Net.Entities.Core.Entity> MixERP.Net.Api.Core.EntityController.GetFiltered | ( | long | pageNumber, |
| string | filterName | ||
| ) |
Creates a filtered and paginated collection containing 25 entities on each page, sorted by the property EntityId.
| pageNumber | Enter the page number to produce the resultset. |
| filterName | The named filter. |
| IEnumerable<MixERP.Net.Entities.Core.Entity> MixERP.Net.Api.Core.EntityController.GetPagedResult | ( | ) |
Creates a paginated collection containing 25 entities on each page, sorted by the property EntityId.
| IEnumerable<MixERP.Net.Entities.Core.Entity> MixERP.Net.Api.Core.EntityController.GetPagedResult | ( | long | pageNumber | ) |
Creates a paginated collection containing 25 entities on each page, sorted by the property EntityId.
| pageNumber | Enter the page number to produce the resultset. |
| IEnumerable<MixERP.Net.Entities.Core.Entity> MixERP.Net.Api.Core.EntityController.GetWhere | ( | long | pageNumber, |
| [FromBody] dynamic | filters | ||
| ) |
Creates a filtered and paginated collection containing 25 entities on each page, sorted by the property EntityId.
| pageNumber | Enter the page number to produce the resultset. |
| filters | The list of filter conditions. |