aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/ApartmentManager/ApartmentManager.csproj2
-rw-r--r--ApartmentManager/ApartmentManager/Model/Class1.cs12
-rw-r--r--ApartmentManager/ApartmentManager/Model/User.cs37
-rw-r--r--HousingDatabase.ldfbin8388608 -> 8388608 bytes
-rw-r--r--HousingDatabase.mdfbin8388608 -> 8388608 bytes
5 files changed, 38 insertions, 13 deletions
diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj
index 240b879..23935b1 100644
--- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj
+++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj
@@ -100,8 +100,8 @@
</Compile>
<Compile Include="Common\RelayCommand.cs" />
<Compile Include="Controls\NavMenuListView.cs" />
- <Compile Include="Model\Class1.cs" />
<Compile Include="Model\NavMenuItem.cs" />
+ <Compile Include="Model\User.cs" />
<Compile Include="Persistency\Persistency.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="View\ApartmentPage.xaml.cs">
diff --git a/ApartmentManager/ApartmentManager/Model/Class1.cs b/ApartmentManager/ApartmentManager/Model/Class1.cs
deleted file mode 100644
index 08e3d73..0000000
--- a/ApartmentManager/ApartmentManager/Model/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace ApartmentManager.Model
-{
- class Class1
- {
- }
-}
diff --git a/ApartmentManager/ApartmentManager/Model/User.cs b/ApartmentManager/ApartmentManager/Model/User.cs
new file mode 100644
index 0000000..280d959
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/Model/User.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ApartmentManager.Model
+{
+ public class User
+ {
+ public string Name { get; set; }
+ public string LastName { get; set; }
+ public int Phone { get; set; }
+ public DateTime BirthDate { get; set; }
+ public string Email { get; set; }
+ public int ApartmentNr { get; set; }
+
+ public User() { }
+
+ public User(string Name, string LastName, int Phone, DateTime BirthDate, string Email, int ApartmentNr)
+ {
+ this.Name = Name;
+ this.LastName = LastName;
+ this.Phone = Phone;
+ this.BirthDate = BirthDate;
+ this.Email = Email;
+ this.ApartmentNr = ApartmentNr;
+
+ }
+
+ //public override string ToString()
+ //{
+ // return string.Format("Hotelno {0} Name {1} Address {2}", Hotel_No, Name, Address);
+ //}
+
+ }
+}
diff --git a/HousingDatabase.ldf b/HousingDatabase.ldf
index 573b50d..12dcf09 100644
--- a/HousingDatabase.ldf
+++ b/HousingDatabase.ldf
Binary files differ
diff --git a/HousingDatabase.mdf b/HousingDatabase.mdf
index f56a5ec..25f4551 100644
--- a/HousingDatabase.mdf
+++ b/HousingDatabase.mdf
Binary files differ