Klepsi
Klepsi
CC#
Created by Klepsi on 4/1/2024 in #help
C# Entity core framework gaslighting
yeah
3 replies
CC#
Created by Klepsi on 3/31/2024 in #help
how to embed?
I did a thing where I just separate core values from the ID and it worked example:
using System.ComponentModel.DataAnnotations;
using MongoDB.Bson;
using MongoDB.EntityFrameworkCore;

namespace PawelApp.Data;


public class Item
{
[Required]
public ItemType ItemType { get; set; }
[Required]
public Price? Price { get; set; }
[Required]
public string? Name { get; set; }
public string? Description { get; set; }
}
[Collection("items")]
public class ItemWithId : Item
{
public ObjectId Id { get; set; } = ObjectId.GenerateNewId();

}
using System.ComponentModel.DataAnnotations;
using MongoDB.Bson;
using MongoDB.EntityFrameworkCore;

namespace PawelApp.Data;


public class Item
{
[Required]
public ItemType ItemType { get; set; }
[Required]
public Price? Price { get; set; }
[Required]
public string? Name { get; set; }
public string? Description { get; set; }
}
[Collection("items")]
public class ItemWithId : Item
{
public ObjectId Id { get; set; } = ObjectId.GenerateNewId();

}
2 replies
CC#
Created by Klepsi on 3/30/2024 in #help
csharp infinite loop caused by Identity store provider
it worked!
4 replies
CC#
Created by Klepsi on 3/30/2024 in #help
csharp infinite loop caused by Identity store provider
Thank you
4 replies