13 lines
450 B
C#
13 lines
450 B
C#
//using Modules.Library.Database.Database.Models;
|
|
//using MongoDB.Bson;
|
|
|
|
//namespace Modules.Library.Database.Repositories.Converters;
|
|
|
|
//internal static class ToDbConverterBase
|
|
//{
|
|
// internal static void SetId(Entity1 entity, string? domainEntityId = null)
|
|
// {
|
|
// if (string.IsNullOrWhiteSpace(domainEntityId)) entity.ObjectId = ObjectId.GenerateNewId();
|
|
// else entity.ObjectId = ObjectId.Parse(domainEntityId);
|
|
// }
|
|
//} |