Add project files.
This commit is contained in:
12
BlazorSyncfusionCrm/Shared/BlazorSyncfusionCrm.Shared.csproj
Normal file
12
BlazorSyncfusionCrm/Shared/BlazorSyncfusionCrm.Shared.csproj
Normal 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>
|
||||
27
BlazorSyncfusionCrm/Shared/Contact.cs
Normal file
27
BlazorSyncfusionCrm/Shared/Contact.cs
Normal 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>();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
17
BlazorSyncfusionCrm/Shared/Note.cs
Normal file
17
BlazorSyncfusionCrm/Shared/Note.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
1
BlazorSyncfusionCrm/Shared/SharedClass.cs
Normal file
1
BlazorSyncfusionCrm/Shared/SharedClass.cs
Normal file
@ -0,0 +1 @@
|
||||
/* Shared classes can be referenced by both the Client and Server */
|
||||
Reference in New Issue
Block a user