вынесли последовательность в модели

This commit is contained in:
Timourka 2024-05-08 01:08:23 +04:00
parent 3428145ff7
commit 41bd027470
2 changed files with 7 additions and 5 deletions

View File

@ -12,11 +12,7 @@ namespace database
private IMongoCollection<Branch> _branchCollection;
private IMongoCollection<Status> _statusCollection;
private IMongoCollection<BodyType> _bodyTypeCollection;
private class Sequence
{
public string Id;
public int count;
}
private IMongoCollection<Sequence> _sequenceCollection;
public ImplementationMongoDB()

View File

@ -78,4 +78,10 @@ namespace database
public string Text { get; set; }
public int Id { get; set; }
}
public class Sequence
{
[BsonRepresentation(BsonType.String)]
public string Id { get; set; }
public int count { get; set; }
}
}