Exemplo n.º 1
0
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.DirtyTrackingRootSelector493946136(session, _document));
 }
Exemplo n.º 2
0
 public override Marten.Internal.Operations.IStorageOperation Overwrite(DocumentDbTests.Bugs.Bug_849_not_node_not_correctly_evaluated.TestClass document, Marten.Internal.IMartenSession session, string tenant)
 {
     throw new System.NotSupportedException();
 }
 public override void ConfigureParameters(Npgsql.NpgsqlParameter[] parameters, DocumentDbTests.Reading.Linq.IsNullNotNullArbitraryDepthTests.UserNested document, Marten.Internal.IMartenSession session)
 {
     parameters[0].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Jsonb;
     parameters[0].Value        = session.Serializer.ToJson(_document);
     // .Net Class Type
     parameters[1].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Varchar;
     parameters[1].Value        = _document.GetType().FullName;
     parameters[2].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Uuid;
     parameters[2].Value        = document.Id;
     setVersionParameter(parameters[3]);
 }
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.DirtyTrackingIdentitySelector141652026(session, _document));
 }
Exemplo n.º 5
0
 public override void ConfigureParameters(Npgsql.NpgsqlParameter[] parameters, DocumentDbTests.Bugs.Bug_849_not_node_not_correctly_evaluated.TestClass document, Marten.Internal.IMartenSession session)
 {
     parameters[0].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Jsonb;
     parameters[0].Value        = session.Serializer.ToJson(_document);
     // .Net Class Type
     parameters[1].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Varchar;
     parameters[1].Value        = _document.GetType().FullName;
     parameters[2].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Uuid;
     parameters[2].Value        = document.Id;
     setVersionParameter(parameters[3]);
 }
 public DirtyTrackingIdentitySelector141652026(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
        public override Marten.Internal.Operations.IStorageOperation Upsert(EventSourcingTests.Bugs.Bug_2025_event_inheritance_in_projection.Identity document, Marten.Internal.IMartenSession session, string tenant)
        {
            return(new Marten.Generated.DocumentStorage.UpsertIdentityOperation141652026
                   (
                       document, Identity(document),
                       session.Versions.ForType <EventSourcingTests.Bugs.Bug_2025_event_inheritance_in_projection.Identity, System.Guid>(),
                       _document

                   ));
        }
        public override Marten.Internal.Operations.IStorageOperation Upsert(DocumentDbTests.Bugs.GuyWithIntArray document, Marten.Internal.IMartenSession session, string tenant)
        {
            return(new Marten.Generated.DocumentStorage.UpsertGuyWithIntArrayOperation1326363224
                   (
                       document, Identity(document),
                       session.Versions.ForType <DocumentDbTests.Bugs.GuyWithIntArray, System.Guid>(),
                       _document

                   ));
        }
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.DirtyTrackingGuyWithIntArraySelector1326363224(session, _document));
 }
 public DirtyTrackingGuyWithIntArraySelector1326363224(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
        public override void ConfigureParameters(Npgsql.NpgsqlParameter[] parameters, DocumentDbTests.Bugs.GuyWithIntArray document, Marten.Internal.IMartenSession session)
        {
            parameters[0].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Array | NpgsqlTypes.NpgsqlDbType.Integer;

            if (document.Numbers != null)
            {
                parameters[0].Value = document.Numbers;
            }

            else
            {
                parameters[0].Value = System.DBNull.Value;
            }

            parameters[1].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Jsonb;
            parameters[1].Value        = session.Serializer.ToJson(_document);
            // .Net Class Type
            parameters[2].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Varchar;
            parameters[2].Value        = _document.GetType().FullName;
            parameters[3].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Uuid;
            parameters[3].Value        = document.Id;
            setVersionParameter(parameters[4]);
        }
Exemplo n.º 12
0
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.DirtyTrackingDocWithArraysSelector1391541541(session, _document));
 }
Exemplo n.º 13
0
        public override Marten.Internal.Operations.IStorageOperation Upsert(DocumentDbTests.Bugs.DocWithArrays document, Marten.Internal.IMartenSession session, string tenant)
        {
            return(new Marten.Generated.DocumentStorage.UpsertDocWithArraysOperation1391541541
                   (
                       document, Identity(document),
                       session.Versions.ForType <DocumentDbTests.Bugs.DocWithArrays, System.Guid>(),
                       _document

                   ));
        }
Exemplo n.º 14
0
 public DirtyTrackingDocWithArraysSelector1391541541(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
 public override Marten.Internal.Operations.IStorageOperation Overwrite(DocumentDbTests.Bugs.DocHolder document, Marten.Internal.IMartenSession session, string tenant)
 {
     throw new System.NotSupportedException();
 }
 public DirtyTrackingMainEntitySelector1625545438(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.DirtyTrackingDocHolderSelector1892370027(session, _document));
 }
 public override void ConfigureParameters(Npgsql.NpgsqlParameter[] parameters, DocumentDbTests.Bugs.Bug_717_permutation_of_Linq_queries.MainEntity document, Marten.Internal.IMartenSession session)
 {
     parameters[0].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Jsonb;
     parameters[0].Value        = session.Serializer.ToJson(_document);
     // .Net Class Type
     parameters[1].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Varchar;
     parameters[1].Value        = _document.GetType().FullName;
     parameters[2].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Bigint;
     parameters[2].Value        = document.Id;
     setVersionParameter(parameters[3]);
 }
 public override void ConfigureParameters(Npgsql.NpgsqlParameter[] parameters, EventSourcingTests.Bugs.Bug_2025_event_inheritance_in_projection.Identity document, Marten.Internal.IMartenSession session)
 {
     parameters[0].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Jsonb;
     parameters[0].Value        = session.Serializer.ToJson(_document);
     // .Net Class Type
     parameters[1].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Varchar;
     parameters[1].Value        = _document.GetType().FullName;
     parameters[2].NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Uuid;
     parameters[2].Value        = document.Id;
     setVersionParameter(parameters[3]);
 }
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.IdentityMapMainEntitySelector1625545438(session, _document));
 }
 public override Marten.Internal.Operations.IStorageOperation Overwrite(EventSourcingTests.Bugs.Bug_2025_event_inheritance_in_projection.Identity document, Marten.Internal.IMartenSession session, string tenant)
 {
     throw new System.NotSupportedException();
 }
        public override Marten.Internal.Operations.IStorageOperation Upsert(DocumentDbTests.Bugs.Bug_717_permutation_of_Linq_queries.MainEntity document, Marten.Internal.IMartenSession session, string tenant)
        {
            return(new Marten.Generated.DocumentStorage.UpsertMainEntityOperation1625545438
                   (
                       document, Identity(document),
                       session.Versions.ForType <DocumentDbTests.Bugs.Bug_717_permutation_of_Linq_queries.MainEntity, long>(),
                       _document

                   ));
        }
Exemplo n.º 23
0
 public DirtyTrackingTestClassSelector2001772986(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
 public override Marten.Internal.Operations.IStorageOperation Overwrite(DocumentDbTests.Bugs.Bug_717_permutation_of_Linq_queries.MainEntity document, Marten.Internal.IMartenSession session, string tenant)
 {
     throw new System.NotSupportedException();
 }
Exemplo n.º 25
0
        public override Marten.Internal.Operations.IStorageOperation Upsert(DocumentDbTests.Bugs.Bug_849_not_node_not_correctly_evaluated.TestClass document, Marten.Internal.IMartenSession session, string tenant)
        {
            return(new Marten.Generated.DocumentStorage.UpsertTestClassOperation2001772986
                   (
                       document, Identity(document),
                       session.Versions.ForType <DocumentDbTests.Bugs.Bug_849_not_node_not_correctly_evaluated.TestClass, System.Guid>(),
                       _document

                   ));
        }
 public DirtyTrackingDocHolderSelector1892370027(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
Exemplo n.º 27
0
 public override Marten.Linq.Selectors.ISelector BuildSelector(Marten.Internal.IMartenSession session)
 {
     return(new Marten.Generated.DocumentStorage.DirtyTrackingTestClassSelector2001772986(session, _document));
 }
        public override Marten.Internal.Operations.IStorageOperation Upsert(DocumentDbTests.Bugs.DocHolder document, Marten.Internal.IMartenSession session, string tenant)
        {
            return(new Marten.Generated.DocumentStorage.UpsertDocHolderOperation1892370027
                   (
                       document, Identity(document),
                       session.Versions.ForType <DocumentDbTests.Bugs.DocHolder, System.Guid>(),
                       _document

                   ));
        }
 public IdentityMapUserNestedSelector527241557(Marten.Internal.IMartenSession session, Marten.Schema.DocumentMapping mapping) : base(session, mapping)
 {
     _session = session;
     _mapping = mapping;
 }
Exemplo n.º 30
0
 public override Marten.Internal.Operations.IStorageOperation Overwrite(DocumentDbTests.Bugs.Bug_1217_order_by_count_of_sub_collection.Root document, Marten.Internal.IMartenSession session, string tenant)
 {
     throw new System.NotSupportedException();
 }