Class DriverRepository
Inheritance
System.Object
DriverRepository
Implements
IRepositoryBase<
System.Guid,
Driver>
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class DriverRepository : SqlRepositoryBase<Guid, Driver>, IDriverRepository
Constructors
|
Improve this Doc
View Source
DriverRepository(ISqlService, ISqlColumnService, ICacheService)
Declaration
public DriverRepository(ISqlService sqlService, ISqlColumnService sqlColumnService, ICacheService cacheService)
Parameters
Type |
Name |
Description |
ISqlService |
sqlService |
|
ISqlColumnService |
sqlColumnService |
|
ICacheService |
cacheService |
|
Properties
|
Improve this Doc
View Source
PrimaryKeyColumn
Declaration
public override string PrimaryKeyColumn { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TableName
Declaration
public override string TableName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AssignDriverToVehicle(Driver)
Declaration
public bool AssignDriverToVehicle(Driver driver)
Parameters
Type |
Name |
Description |
Driver |
driver |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DeallocateDriver(Driver)
Declaration
public bool DeallocateDriver(Driver driver)
Parameters
Type |
Name |
Description |
Driver |
driver |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetAllAvailableDrivers()
Declaration
public IEnumerable<Driver> GetAllAvailableDrivers()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Driver> |
|
|
Improve this Doc
View Source
GetDriversAssignedToVehicle(Guid)
Declaration
public IEnumerable<Driver> GetDriversAssignedToVehicle(Guid vehicleId)
Parameters
Type |
Name |
Description |
System.Guid |
vehicleId |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Driver> |
|
|
Improve this Doc
View Source
GetId(Driver)
Declaration
public override Guid GetId(Driver obj)
Parameters
Type |
Name |
Description |
Driver |
obj |
|
Returns
Type |
Description |
System.Guid |
|
Implements
IRepositoryBase<, >