Search Results for

    Show / Hide Table of Contents

    Class RegistrationPlateRepository

    Represent the class of the vehicle licence plate repository.

    Inheritance
    System.Object
    RegistrationPlateRepository
    Implements
    IRegistrationPlateRepository
    IRepositoryBase<System.Guid, RegistrationPlate>
    Namespace: Simplic.PlugIn.Logistics
    Assembly: Simplic.PlugIn.Logistics.dll
    Syntax
    public class RegistrationPlateRepository : SqlRepositoryBase<Guid, RegistrationPlate>, IRegistrationPlateRepository

    Constructors

    | Improve this Doc View Source

    RegistrationPlateRepository(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 Source

    PrimaryKeyColumn

    Gets or sets the primary key column.

    Declaration
    public override string PrimaryKeyColumn { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TableName

    Gets or sets the table name.

    Declaration
    public override string TableName { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    CheckPlate(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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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

    IRegistrationPlateRepository
    IRepositoryBase<, >
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx