Search Results for

    Show / Hide Table of Contents

    Class RegistrationPlateService

    Represent the class of the registration plate service.

    Inheritance
    System.Object
    RegistrationPlateService
    Implements
    IRegistrationPlateService
    IRegistrationPlateRepository
    IRepositoryBase<System.Guid, RegistrationPlate>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.PlugIn.Logistics
    Assembly: Simplic.PlugIn.Logistics.dll
    Syntax
    public class RegistrationPlateService : IRegistrationPlateService, IRegistrationPlateRepository

    Constructors

    | Improve this Doc View Source

    RegistrationPlateService(IRegistrationPlateRepository)

    Initializes a new instance of RegistrationPlateService.

    Declaration
    public RegistrationPlateService(IRegistrationPlateRepository vehicleRegistrationPlateRepository)
    Parameters
    Type Name Description
    IRegistrationPlateRepository vehicleRegistrationPlateRepository

    Instance of IRegistrationPlateRepository.

    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 registrationIdentifier)
    Parameters
    Type Name Description
    RegistrationPlate registrationIdentifier

    The identifier to check for existence in the database.

    Returns
    Type Description
    System.Boolean

    True if the plate is correct, false otherwise.

    | Improve this Doc View Source

    Delete(RegistrationPlate)

    Deletes the vehicle registration plate from the db.

    Declaration
    public bool Delete(RegistrationPlate obj)
    Parameters
    Type Name Description
    RegistrationPlate obj

    Registration plate that has to be deleted.

    Returns
    Type Description
    System.Boolean

    A bool value if the delete procedur was successfully.

    | Improve this Doc View Source

    Delete(Guid)

    Deletes the vehicle registration plate from the db.

    Declaration
    public bool Delete(Guid id)
    Parameters
    Type Name Description
    System.Guid id
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Get(Guid)

    Gets a VehicleRegistrationPlate by its id.

    Declaration
    public RegistrationPlate Get(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    The guid from the registration plate you want to get.

    Returns
    Type Description
    RegistrationPlate

    The registration plate with the parameter guid.

    | Improve this Doc View Source

    GetAll()

    Gets all VehicleRegistrationPlate.

    Declaration
    public IEnumerable<RegistrationPlate> GetAll()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<RegistrationPlate>

    A list with all Registration Plates from the db.

    | Improve this Doc View Source

    Save(RegistrationPlate)

    Saves the Registration in the db.

    Declaration
    public bool Save(RegistrationPlate obj)
    Parameters
    Type Name Description
    RegistrationPlate obj

    The registration that has the be saved.

    Returns
    Type Description
    System.Boolean

    A bool value if the save procedur was successfully.

    Implements

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