Add project files.

This commit is contained in:
2025-08-28 11:32:25 +02:00
parent 35e29e07f1
commit eb9ea77dd9
54 changed files with 1872 additions and 0 deletions

View File

@ -0,0 +1,29 @@
using System.ComponentModel;
namespace Common.Library;
public abstract class CommonBase : INotifyPropertyChanged
{
#region Constructor
protected CommonBase()
{
Init();
}
#endregion
#region Init Method
public virtual void Init()
{
}
#endregion
#region RaisePropertyChanged Method
public event PropertyChangedEventHandler? PropertyChanged;
public virtual void RaisePropertyChanged(string propertyName)
{
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
#endregion
}

View File

@ -0,0 +1,5 @@
namespace Common.Library;
public class EntityBase : CommonBase
{
}

View File

@ -0,0 +1,5 @@
namespace Common.Library;
public class ViewModelBase : CommonBase
{
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,10 @@
using System.Collections.ObjectModel;
namespace Common.Library;
public interface IRepository<TEntity>
{
ObservableCollection<TEntity> Get();
TEntity Get(int id);
bool Save(TEntity entity);
}