Added ef core integration
This commit is contained in:
13
debug/TestApplication/Models/Post.cs
Normal file
13
debug/TestApplication/Models/Post.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace TestApplication.Models;
|
||||
|
||||
public class Post {
|
||||
[Key]
|
||||
public Guid Id { get; } = Guid.CreateVersion7();
|
||||
|
||||
public required User Sender { get; set; }
|
||||
|
||||
[MaxLength(5000)]
|
||||
public required string Message { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user