Using dependency injection and viewmodel etc
This commit is contained in:
33
AdventureWorks.EntityLayer/EntityClasses/Color.cs
Normal file
33
AdventureWorks.EntityLayer/EntityClasses/Color.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Common.Library;
|
||||
|
||||
namespace AdventureWorks.EntityLayer;
|
||||
|
||||
public class Color : EntityBase
|
||||
{
|
||||
#region Private Variables
|
||||
private int _ColorId;
|
||||
private string _ColorName = string.Empty;
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
public int ColorId
|
||||
{
|
||||
get { return _ColorId; }
|
||||
set
|
||||
{
|
||||
_ColorId = value;
|
||||
RaisePropertyChanged(nameof(ColorId));
|
||||
}
|
||||
}
|
||||
|
||||
public string ColorName
|
||||
{
|
||||
get { return _ColorName; }
|
||||
set {
|
||||
_ColorName = value;
|
||||
RaisePropertyChanged(nameof(ColorName));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user