MixERP.Net.Schemas.Core.Data.Brand Class Reference

Provides simplified data access features to perform SCRUD operation on the database table "core.brands". More...

Inheritance diagram for MixERP.Net.Schemas.Core.Data.Brand:
PetaPoco.DbAccess PetaPoco.IDBAccess

Public Member Functions

long Count ()
 Performs SQL count on the table "core.brands". More...
 
IEnumerable< MixERP.Net.Entities.Core.BrandGet ()
 Executes a select query on the table "core.brands" to return a all instances of the "Brand" class to export. More...
 
MixERP.Net.Entities.Core.Brand Get (int brandId)
 Executes a select query on the table "core.brands" with a where filter on the column "brand_id" to return a single instance of the "Brand" class. More...
 
IEnumerable< MixERP.Net.Entities.Core.BrandGet (int[] brandIds)
 Executes a select query on the table "core.brands" with a where filter on the column "brand_id" to return a multiple instances of the "Brand" class. More...
 
IEnumerable< PetaPoco.CustomFieldGetCustomFields (string resourceId)
 Custom fields are user defined form elements for core.brands. More...
 
IEnumerable< DisplayFieldGetDisplayFields ()
 Displayfields provide a minimal name/value context for data binding the row collection of core.brands. More...
 
void AddOrEdit (MixERP.Net.Entities.Core.Brand brand, List< EntityParser.CustomField > customFields)
 Inserts or updates the instance of Brand class on the database table "core.brands". More...
 
object Add (MixERP.Net.Entities.Core.Brand brand)
 Inserts the instance of Brand class on the database table "core.brands". More...
 
List< object > BulkImport (List< MixERP.Net.Entities.Core.Brand > brands)
 Inserts or updates multiple instances of Brand class on the database table "core.brands"; More...
 
void Update (MixERP.Net.Entities.Core.Brand brand, int brandId)
 Updates the row of the table "core.brands" with an instance of "Brand" class against the primary key value. More...
 
void Delete (int brandId)
 Deletes the row of the table "core.brands" against the primary key value. More...
 
IEnumerable< MixERP.Net.Entities.Core.BrandGetPagedResult ()
 Performs a select statement on table "core.brands" producing a paged result of 25. More...
 
IEnumerable< MixERP.Net.Entities.Core.BrandGetPagedResult (long pageNumber)
 Performs a select statement on table "core.brands" producing a paged result of 25. More...
 
long CountWhere (List< EntityParser.Filter > filters)
 Performs a filtered count on table "core.brands". More...
 
IEnumerable< MixERP.Net.Entities.Core.BrandGetWhere (long pageNumber, List< EntityParser.Filter > filters)
 Performs a filtered select statement on table "core.brands" producing a paged result of 25. More...
 
long CountFiltered (string filterName)
 Performs a filtered count on table "core.brands". More...
 
IEnumerable< MixERP.Net.Entities.Core.BrandGetFiltered (long pageNumber, string filterName)
 Performs a filtered select statement on table "core.brands" producing a paged result of 25. More...
 
- Public Member Functions inherited from PetaPoco.DbAccess
void Validate (AccessTypeEnum type, long loginId, bool noException)
 Validates application user access rights to execute the function. More...
 

Public Attributes

override string ObjectNamespace => "core"
 The schema of this table. Returns literal "core". More...
 
override string ObjectName => "brands"
 The schema unqualified name of this table. Returns literal "brands". More...
 

Properties

long LoginId [get, set]
 Login id of application user accessing this table. More...
 
int UserId [get, set]
 User id of application user accessing this table. More...
 
string Catalog [get, set]
 The name of the database on which queries are being executed to. More...
 
- Properties inherited from PetaPoco.DbAccess
abstract string ObjectNamespace [get]
 
abstract string ObjectName [get]
 
bool HasAccess [get]
 
bool Validated [get]
 
bool SkipValidation [get, set]
 
- Properties inherited from PetaPoco.IDBAccess
bool HasAccess [get]
 

Detailed Description

Provides simplified data access features to perform SCRUD operation on the database table "core.brands".

Member Function Documentation

object MixERP.Net.Schemas.Core.Data.Brand.Add ( MixERP.Net.Entities.Core.Brand  brand)

Inserts the instance of Brand class on the database table "core.brands".

Parameters
brandThe instance of "Brand" class to insert.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
void MixERP.Net.Schemas.Core.Data.Brand.AddOrEdit ( MixERP.Net.Entities.Core.Brand  brand,
List< EntityParser.CustomField customFields 
)

Inserts or updates the instance of Brand class on the database table "core.brands".

Parameters
brandThe instance of "Brand" class to insert or update.
customFieldsThe custom field collection.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
List<object> MixERP.Net.Schemas.Core.Data.Brand.BulkImport ( List< MixERP.Net.Entities.Core.Brand brands)

Inserts or updates multiple instances of Brand class on the database table "core.brands";

Parameters
brandsList of "Brand" class to import.
Returns
long MixERP.Net.Schemas.Core.Data.Brand.Count ( )

Performs SQL count on the table "core.brands".

Returns
Returns the number of rows of the table "core.brands".
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
long MixERP.Net.Schemas.Core.Data.Brand.CountFiltered ( string  filterName)

Performs a filtered count on table "core.brands".

Parameters
filterNameThe named filter.
Returns
Returns number of rows of "Brand" class using the filter.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
long MixERP.Net.Schemas.Core.Data.Brand.CountWhere ( List< EntityParser.Filter filters)

Performs a filtered count on table "core.brands".

Parameters
filtersThe list of filter conditions.
Returns
Returns number of rows of "Brand" class using the filter.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
void MixERP.Net.Schemas.Core.Data.Brand.Delete ( int  brandId)

Deletes the row of the table "core.brands" against the primary key value.

Parameters
brandIdThe value of the column "brand_id" which will be deleted.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<MixERP.Net.Entities.Core.Brand> MixERP.Net.Schemas.Core.Data.Brand.Get ( )

Executes a select query on the table "core.brands" to return a all instances of the "Brand" class to export.

Returns
Returns a non-live, non-mapped instances of "Brand" class.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
MixERP.Net.Entities.Core.Brand MixERP.Net.Schemas.Core.Data.Brand.Get ( int  brandId)

Executes a select query on the table "core.brands" with a where filter on the column "brand_id" to return a single instance of the "Brand" class.

Parameters
brandIdThe column "brand_id" parameter used on where filter.
Returns
Returns a non-live, non-mapped instance of "Brand" class mapped to the database row.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<MixERP.Net.Entities.Core.Brand> MixERP.Net.Schemas.Core.Data.Brand.Get ( int[]  brandIds)

Executes a select query on the table "core.brands" with a where filter on the column "brand_id" to return a multiple instances of the "Brand" class.

Parameters
brandIdsArray of column "brand_id" parameter used on where filter.
Returns
Returns a non-live, non-mapped collection of "Brand" class mapped to the database row.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<PetaPoco.CustomField> MixERP.Net.Schemas.Core.Data.Brand.GetCustomFields ( string  resourceId)

Custom fields are user defined form elements for core.brands.

Returns
Returns an enumerable custom field collection for the table core.brands
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<DisplayField> MixERP.Net.Schemas.Core.Data.Brand.GetDisplayFields ( )

Displayfields provide a minimal name/value context for data binding the row collection of core.brands.

Returns
Returns an enumerable name and value collection for the table core.brands
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<MixERP.Net.Entities.Core.Brand> MixERP.Net.Schemas.Core.Data.Brand.GetFiltered ( long  pageNumber,
string  filterName 
)

Performs a filtered select statement on table "core.brands" producing a paged result of 25.

Parameters
pageNumberEnter the page number to produce the paged result.
filterNameThe named filter.
Returns
Returns collection of "Brand" class.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<MixERP.Net.Entities.Core.Brand> MixERP.Net.Schemas.Core.Data.Brand.GetPagedResult ( )

Performs a select statement on table "core.brands" producing a paged result of 25.

Returns
Returns the first page of collection of "Brand" class.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<MixERP.Net.Entities.Core.Brand> MixERP.Net.Schemas.Core.Data.Brand.GetPagedResult ( long  pageNumber)

Performs a select statement on table "core.brands" producing a paged result of 25.

Parameters
pageNumberEnter the page number to produce the paged result.
Returns
Returns collection of "Brand" class.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
IEnumerable<MixERP.Net.Entities.Core.Brand> MixERP.Net.Schemas.Core.Data.Brand.GetWhere ( long  pageNumber,
List< EntityParser.Filter filters 
)

Performs a filtered select statement on table "core.brands" producing a paged result of 25.

Parameters
pageNumberEnter the page number to produce the paged result.
filtersThe list of filter conditions.
Returns
Returns collection of "Brand" class.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.
void MixERP.Net.Schemas.Core.Data.Brand.Update ( MixERP.Net.Entities.Core.Brand  brand,
int  brandId 
)

Updates the row of the table "core.brands" with an instance of "Brand" class against the primary key value.

Parameters
brandThe instance of "Brand" class to update.
brandIdThe value of the column "brand_id" which will be updated.
Exceptions
UnauthorizedExceptionThown when the application user does not have sufficient privilege to perform this action.

Member Data Documentation

override string MixERP.Net.Schemas.Core.Data.Brand.ObjectName => "brands"

The schema unqualified name of this table. Returns literal "brands".

override string MixERP.Net.Schemas.Core.Data.Brand.ObjectNamespace => "core"

The schema of this table. Returns literal "core".

Property Documentation

string MixERP.Net.Schemas.Core.Data.Brand.Catalog
getset

The name of the database on which queries are being executed to.

long MixERP.Net.Schemas.Core.Data.Brand.LoginId
getset

Login id of application user accessing this table.

int MixERP.Net.Schemas.Core.Data.Brand.UserId
getset

User id of application user accessing this table.


The documentation for this class was generated from the following file: