Skip to content

Mongodb support #183

Closed Answered by guidoDimasi
guidoDimasi asked this question in Q&A
Jan 7, 2025 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

i've made as you suggested write my own version of EntityTableData and so far it seems to work well (i'm in a earlyy stage of development)

  public class   MongoDBEntity : EntityTableData
  {
      [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
      [UpdatedByRepository]
      public override DateTimeOffset? UpdatedAt { get; set; } = DateTimeOffset.UnixEpoch;

      [Timestamp]
      [UpdatedByRepository]
      public override byte[] Version { get; set; } = Array.Empty<byte>();
  }

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@guidoDimasi
Comment options

@adrianhall
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianhall
Comment options

You must be logged in to vote
1 reply
@guidoDimasi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants