вынесли последовательность в модели
This commit is contained in:
parent
3428145ff7
commit
41bd027470
@ -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()
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user