DatabaseHelper update and Models
This commit is contained in:
15
C969Project/Data/Models/Address.cs
Normal file
15
C969Project/Data/Models/Address.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace C969Project.Data.Models;
|
||||
|
||||
public class Address
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Address1 {get; set;}
|
||||
public string Address2 {get; set;}
|
||||
public int CityId {get; set;}
|
||||
public string PostalCode {get; set;}
|
||||
public string Phone {get; set;}
|
||||
public DateTime CreateDate {get; set;}
|
||||
public string CreatedBy {get; set;}
|
||||
public DateTime LastUpdate {get; set;}
|
||||
public string LastUpdateBy {get; set;}
|
||||
}
|
||||
20
C969Project/Data/Models/Appointment.cs
Normal file
20
C969Project/Data/Models/Appointment.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace C969Project.Data.Models;
|
||||
|
||||
public class Appointment
|
||||
{
|
||||
public int AppointmentId { get; set; }
|
||||
public int CustomerId { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Contact { get; set; }
|
||||
public string AppointmentType { get; set; }
|
||||
public string Url {get; set;}
|
||||
public DateTime Start { get; set; }
|
||||
public DateTime End { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime LastUpdate { get; set; }
|
||||
public string LastUpdateBy { get; set; }
|
||||
}
|
||||
12
C969Project/Data/Models/City.cs
Normal file
12
C969Project/Data/Models/City.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace C969Project.Data.Models;
|
||||
|
||||
public class City
|
||||
{
|
||||
public int CityID { get; set; }
|
||||
public string CityName { get; set; }
|
||||
public int CountryID { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime LastUpdate { get; set; }
|
||||
public string LastUpdateBy { get; set; }
|
||||
}
|
||||
11
C969Project/Data/Models/Country.cs
Normal file
11
C969Project/Data/Models/Country.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace C969Project.Data.Models;
|
||||
|
||||
public class Country
|
||||
{
|
||||
public int CountryID { get; set; }
|
||||
public string CountryName { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime LastUpdate { get; set; }
|
||||
public string LastUpdateBy { get; set; }
|
||||
}
|
||||
13
C969Project/Data/Models/Customer.cs
Normal file
13
C969Project/Data/Models/Customer.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace C969Project.Data.Models;
|
||||
|
||||
public class Customer
|
||||
{
|
||||
public int CustomerId { get; set; }
|
||||
public string CustomerName { get; set; }
|
||||
public int AddressId { get; set; }
|
||||
public int Active { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime LastUpdate { get; set; }
|
||||
public string LastUpdateBy { get; set; }
|
||||
}
|
||||
@@ -2,21 +2,12 @@ namespace C969Project.Data.Models;
|
||||
|
||||
public class User
|
||||
{
|
||||
// int id = reader.GetInt32("userId");
|
||||
// string name = reader.GetString("userName");
|
||||
// string password = reader.GetString("password");
|
||||
// int active = reader.GetInt32("active");
|
||||
// DateTime scheduled = reader.GetDateTime("createDate");
|
||||
// string createdBy = reader.GetString("createdBy");
|
||||
// var lastUpdated = reader.GetDateTime("lastUpdate"); // Timestap
|
||||
// string lastUpdateBy = reader.GetString("lastUpdateBy");
|
||||
|
||||
public int UserId { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public int Active { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime LastUpdate { get; set; }
|
||||
public string LastUpdateBy { get; set; }
|
||||
|
||||
public User(int id, string username)
|
||||
{
|
||||
UserId = id;
|
||||
Username = username;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user