- Add placeholder User entity - Add DataAccess class with interface and add it as a service to the app. - Change background color of app as a test
14 lines
379 B
C#
14 lines
379 B
C#
namespace WretchedMachines.DataAccess.Entities;
|
|
|
|
public class User : IEquatable<User>
|
|
{
|
|
public required string Name { get; set; }
|
|
public int Id { get; set; }
|
|
|
|
public bool Equals(User? other)
|
|
{
|
|
if(Object.ReferenceEquals(other, null)) return false;
|
|
if(Object.ReferenceEquals(this, other)) return true;
|
|
return Name.Equals(other.Name);
|
|
}
|
|
} |