public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Metadata.MyVersionedDoc document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); var version = Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(); writer.Write(version, NpgsqlTypes.NpgsqlDbType.Uuid); document.Version = version; writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Reading.Linq.TypeWithInnerCollectionsWithJsonConverterAttribute document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override async System.Threading.Tasks.Task LoadRowAsync(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Metadata.AttVersionedDoc document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer, System.Threading.CancellationToken cancellation) { await writer.WriteAsync(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar, cancellation); await writer.WriteAsync(document.Id, NpgsqlTypes.NpgsqlDbType.Integer, cancellation); var version = Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(); writer.Write(version, NpgsqlTypes.NpgsqlDbType.Uuid); document.Version = version; await writer.WriteAsync(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb, cancellation); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Reading.Linq.querying_through_n_deep_sub_collections.Top document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Writing.document_inserts.RecordDocument document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.Bug_834_querying_inside_of_child_collections.Contact document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.Bug_717_permutation_of_Linq_queries.MainEntity document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Bigint); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.MartenStoredState <System.Collections.Generic.Dictionary <string, string> > document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.Bug_1217_order_by_count_of_sub_collection.Root document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.GuyWithIntArray document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.Numbers, NpgsqlTypes.NpgsqlDbType.Array | NpgsqlTypes.NpgsqlDbType.Integer); writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Reading.Linq.SimpleNotEqualsParserTests.QueryTarget document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override async System.Threading.Tasks.Task LoadRowAsync(Npgsql.NpgsqlBinaryImporter writer, EventSourcingTests.Aggregation.when_using_inline_lambdas_to_define_the_projection.SystemState document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer, System.Threading.CancellationToken cancellation) { await writer.WriteAsync(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar, cancellation); await writer.WriteAsync(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid, cancellation); await writer.WriteAsync(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid, cancellation); await writer.WriteAsync(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb, cancellation); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, EventSourcingTests.Aggregation.when_using_inline_lambdas_to_define_the_projection.SystemState document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, EventSourcingTests.Bugs.Bug_1679_use_inner_type_for_self_aggregate.InnerAggregate document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.Bug_849_not_node_not_correctly_evaluated.TestClass document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override async System.Threading.Tasks.Task LoadRowAsync(Npgsql.NpgsqlBinaryImporter writer, EventSourcingTests.Bugs.Bug_1679_use_inner_type_for_self_aggregate.InnerAggregate document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer, System.Threading.CancellationToken cancellation) { await writer.WriteAsync(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar, cancellation); await writer.WriteAsync(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid, cancellation); await writer.WriteAsync(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid, cancellation); await writer.WriteAsync(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb, cancellation); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Reading.Linq.IsNullNotNullArbitraryDepthTests.UserNested document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, EventSourcingTests.Projections.QuestParty document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Bugs.Bug_1256_querying_against_a_uint_type.DocWithUint document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }
public override async System.Threading.Tasks.Task LoadRowAsync(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Writing.document_inserts.RecordDocument document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer, System.Threading.CancellationToken cancellation) { await writer.WriteAsync(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar, cancellation); await writer.WriteAsync(document.Id, NpgsqlTypes.NpgsqlDbType.Uuid, cancellation); await writer.WriteAsync(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid, cancellation); await writer.WriteAsync(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb, cancellation); }
public override void LoadRow(Npgsql.NpgsqlBinaryImporter writer, DocumentDbTests.Deleting.delete_many_documents_by_query.FailureInLife document, Marten.Storage.Tenant tenant, Marten.ISerializer serializer) { writer.Write(document.GetType().FullName, NpgsqlTypes.NpgsqlDbType.Varchar); writer.Write(document.Id, NpgsqlTypes.NpgsqlDbType.Integer); writer.Write(Marten.Schema.Identity.CombGuidIdGeneration.NewGuid(), NpgsqlTypes.NpgsqlDbType.Uuid); writer.Write(serializer.ToJson(document), NpgsqlTypes.NpgsqlDbType.Jsonb); }