Пример #1
0
 public Appointment (Employee EmployeeObject, List<Collector> CollectorList, List<Visitor> VisitorList, String Locatie, DateTime Date)
 {
     this.EmployeeObject = EmployeeObject;
     this.CollectorList = CollectorList;
     this.VisitorList = VisitorList;
     this.Locatie = Locatie;
     this.Date = Date;
 }
		public Employee GetEmployee(int id)
		{
			Employee e = new Employee();
			if (IsQueryPossible)
			{
				e =  _connection.Table<Employee>().FirstOrDefault(x => x.Employee_ID == id);
			}
			return e;
		}
		public void DeleteEmployee (Employee employee)
		{
			if (IsQueryPossible) {
				_connection.Transaction (() => _connection.Delete (employee));
			}
		}
		public void UpdateEmployee (Employee employee)
		{
			if (IsQueryPossible) {
				_connection.Transaction (() => _connection.InsertOrReplace (employee));
			}
		}
		public void InsertEmployee (Employee employee)
		{
			if (IsQueryPossible) {
				_connection.Transaction (() => _connection.Insert (employee));
			}
		}