Add project files.

This commit is contained in:
2023-04-17 11:01:23 +02:00
parent 7a71f95529
commit 0234db870b
25 changed files with 987 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace BlazorSyncfusionCrm.Shared
{
public class Contact
{
public int Id { get; set; }
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public string NickName { get; set; } = string.Empty;
public string Place { get; set; } = string.Empty;
public bool IsDeleted { get; set; }
public DateTime? DateOfBirth { get; set; }
public DateTime DateCreated { get; set; } = DateTime.Now;
public DateTime DateUpdated { get; set; }
public DateTime DateDeleted { get; set; }
[JsonIgnore]
public List<Note> Notes { get; set; } = new List<Note>();
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlazorSyncfusionCrm.Shared
{
public class Note
{
public int Id { get; set; }
public required string Text { get; set; }
public int? ContactId { get; set; }
public Contact? Contact { get; set; }
public DateTime DateCreated { get; set;} = DateTime.Now;
}
}

View File

@ -0,0 +1 @@
/* Shared classes can be referenced by both the Client and Server */