Class RegistrationPlateRepository
Represent the class of the vehicle licence plate repository.
Inheritance
System.Object
RegistrationPlateRepository
Namespace: Simplic.PlugIn.Logistics
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class RegistrationPlateRepository : SqlRepositoryBase<Guid, RegistrationPlate>, IRegistrationPlateRepository
Constructors
| Improve this Doc View SourceRegistrationPlateRepository(ISqlService, ISqlColumnService, Cache.ICacheService)
Initializes a new instance of RegistrationPlateRepository with dependency injection.
Declaration
public RegistrationPlateRepository(ISqlService sqlService, ISqlColumnService sqlColumnService, Cache.ICacheService cacheService)
Parameters
Type | Name | Description |
---|---|---|
ISqlService | sqlService | |
ISqlColumnService | sqlColumnService | |
Cache.ICacheService | cacheService |
Properties
| Improve this Doc View SourcePrimaryKeyColumn
Gets or sets the primary key column.
Declaration
public override string PrimaryKeyColumn { get; }
Property Value
Type | Description |
---|---|
System.String |
TableName
Gets or sets the table name.
Declaration
public override string TableName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCheckPlate(RegistrationPlate)
Checks if a registration plate with a given identifier already exists in the database.
Declaration
public bool CheckPlate(RegistrationPlate obj)
Parameters
Type | Name | Description |
---|---|---|
RegistrationPlate | obj |
Returns
Type | Description |
---|---|
System.Boolean | True if the plate is correct, false otherwise. |
Get(Guid)
Gets the Registration Plate from the db through the id.
Declaration
public override RegistrationPlate Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique guid for the RegistrationPlate. |
Returns
Type | Description |
---|---|
RegistrationPlate |
GetId(RegistrationPlate)
Gets the id from the registration.
Declaration
public override Guid GetId(RegistrationPlate obj)
Parameters
Type | Name | Description |
---|---|---|
RegistrationPlate | obj |
Returns
Type | Description |
---|---|
System.Guid |
Save(RegistrationPlate)
Saves the Registration Plate in the db IT_Vehicle_RegistrationPlate.
Declaration
public override bool Save(RegistrationPlate obj)
Parameters
Type | Name | Description |
---|---|---|
RegistrationPlate | obj | The selected Registration from the grid GRID_Vehicle_CoreData_VehicleRegistrationPlate. |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IRepositoryBase<, >