Exemple #1
0
 public PsnVirtualParameterSimple(IUid id, string name, string expression, IEnumerable <IPsnVirtualParameterPart> parts)
 {
     _id         = id;
     _name       = name;
     _expression = expression;
     _parts      = parts;
 }
 public MyRepository(IBaseRepository _baseRepository, IUid uid)
 {
     _baseRepository = baseRepository;
     _uid            = uid;
     _anotherClass   = BaseRepository.Db.SingleOrDefault <AnotherClass>();
     //another logic in here....
 }
Exemple #3
0
        protected Entity(IUid uid)
        {
            _Reset();

            Guid    = uid.Guid;
            Version = uid.Version;
        } // End of Custom Constructor
Exemple #4
0
 public PsnConfigurationInformationSimple(IUid id, string name, string description, string version, string rpdId)
 {
     _id          = id;
     _name        = name;
     _description = description;
     _version     = version;
     _rpdId       = rpdId;
 }
Exemple #5
0
        public Section(IUid deviceInformationId, string name, IWorker <Action> backWorker, IDeviceInformationStorage backStorage)
        {
            _deviceInformationId = deviceInformationId;
            _name = name;

            _backWorker  = backWorker;
            _backStorage = backStorage;

            Faults = new ObservableCollection <IFaultLog>();
            Psns   = new ObservableCollection <IPsnLog>();
        }
 public PsnCommandPartInfoSimple(IUid id, string partName, PsnCommandPartType partType, List <IDefinedPsnParameterInfo> defParams, List <IVariablePsnParameterInfo> varParams, int length, int offset, IDefinedPsnParameterInfo address, IDefinedPsnParameterInfo commandCode, IVariablePsnParameterInfo crcLow, IVariablePsnParameterInfo crcHigh, IUid commandId)
 {
     _id          = id;
     _partName    = partName;
     _partType    = partType;
     _defParams   = defParams;
     _varParams   = varParams;
     _length      = length;
     _offset      = offset;
     _address     = address;
     _commandCode = commandCode;
     _crcLow      = crcLow;
     _crcHigh     = crcHigh;
     _commandId   = commandId;
 }
Exemple #7
0
 public PsnVirtualParameterPartSimple(IUid realParameterId, string expressionName)
 {
     _realParameterId = realParameterId;
     _expressionName  = expressionName;
 }
 public PsnCommandInfoSimple(string name, IUid id)
 {
     _name = name;
     _id   = id;
 }
Exemple #9
0
 public static bool HasUid(this IUid model, Guid uid)
 {
     return(model.Uid == uid);
 }
Exemple #10
0
 protected Entity(IUid uid) : base(uid)
 {
 }
Exemple #11
0
 public ObjectWithIdSimple(IUid id)
 {
     _id = id;
 }