Implemented propertychanged pattern to connect UI with entity

This commit is contained in:
2025-08-19 12:42:27 +02:00
parent 44419a880d
commit 86daaa5133
8 changed files with 265 additions and 38 deletions

View File

@ -66,6 +66,7 @@
<ItemGroup>
<ProjectReference Include="..\AdventureWorks.EntityLayer\AdventureWorks.EntityLayer.csproj" />
<ProjectReference Include="..\Common.Library\Common.Library.csproj" />
</ItemGroup>
<ItemGroup>

View File

@ -8,10 +8,20 @@ public partial class UserDetailView : ContentPage
{
InitializeComponent();
UserObject = (User)this.Resources["viewModel"];
UserObject.LoginId = "jkzxck0q94375";
}
public User UserObject { get; set; }
protected override void OnAppearing()
{
base.OnAppearing();
UserObject.LoginId = "PeterPiper384";
UserObject.FirstName = "Peter";
UserObject.LastName = "Piper";
UserObject.Email = "peter@piper.com";
}
private void SaveButton_Clicked(object sender, EventArgs e)
{
System.Diagnostics.Debugger.Break();