Questions tagged [ravendb4]

RavenDB in version 4.0

55 questions
4
votes
0 answers

Using RQL filter documents by condition on nested array in RavenDB 4.0+

In RavenDB 4.0+ for a given Sample Northwind database (which is also available at http://live-test.ravendb.net/), what RQL queries one may use to: Get Orders in which at least one of the Lines has Discount == 0? Get Orders in which all the Lines…
Deilan
  • 4,740
  • 3
  • 39
  • 52
4
votes
2 answers

RavenDB: How to prevent $type being saved to a dynamic typed property?

Is there a way to prevent a $type property being added when I save my dynamic type values? When I save this: new Activity { Name = "FormFieldDeleted", Body = new { MyDeletedFormField(), MyCompleteForm() } } I get…
Tom Aalbers
  • 4,574
  • 5
  • 29
  • 51
4
votes
1 answer

RavenDB 4.0 storing raw json

I'm using NLOG for logging with the JsonLayout and want to store these logs in RavenDB 4.0. Basically I'm trying to store raw json into ravendb using the RavenDB .NET client. I had a working solution in RavenDB 3.5: using a class inheriting from…
3
votes
1 answer

How to make a subquery using RQL (Raven Query Language)?

I have this relationship between DB entities: Entity1 - Name ... Entity2 - Entity1FK ... What I want to do is to query in RavenDB Studio using RQL all Entity2 which have Entity1 with according name. This is a RQL query which is not valid but shows…
3
votes
0 answers

Configure RavenDB traffic to run over internal network

I'm having some configuration problems with traffic routed over the wrong network. I have: RavenDB (version 4.2) installed on one server Web site (installed on IIS) installed on another server Both servers are on the same network. The problem we…
Bingla
  • 447
  • 4
  • 17
3
votes
1 answer

What is search by content in RavenDB?

This is the first time I'm working with RavenDB. I am not in a position to ask the creators of the code why they made certain decisions, so I am turning to internet strangers and hoping for some kindness. There are a number of search queries…
Ken Bonny
  • 729
  • 1
  • 9
  • 29
3
votes
0 answers

How to set clause between two fields in RavenDb?

I try to var result = await _session.Query() .Where(p => p.PSAR > p.PrevPSAR, true) .ToListAsync(); but I get this error message. "Could not understand expression: Convert(from NewScreenerDtos, IRavenQueryable`1).Where(p =>…
Ali Taheri
  • 187
  • 2
  • 16
3
votes
1 answer

RavenDB 4 - change timestamp of revision

I'm planning to move from SAP SQLAnywhere + NHibernate + Envers to RavenDB4. I'm doing some migration and performance tests. At this time, I'm looking for an way to migrate Envers Audit to Raven revision. What I'm trying: Read source audit…
Zote
  • 5,343
  • 5
  • 41
  • 43
3
votes
2 answers

How to Load a RavenDB Document, constrained to a Collection, when not using default ID generation strategy

In RavenDB 4 (v4.0.3-patch-40031) I have two Document types: Apple and Orange. Both have similar, but also distinct, properties. I run into a bug in my code at runtime where sometimes an the ID of an Apple is provided, but an Orange is returned.…
Juliën
  • 9,047
  • 7
  • 49
  • 80
3
votes
1 answer

RavenDB 4 RC2: Cannot execute command of type PutAutoIndexCommand for database - Can not update auto-index:

I am using a RavenDB 4 RC 2 database. Some of my database auto generated indexes keep 'freezing' and causing errors in my API. Deleting the frozen index provides a short term solution. But even though I am regenerating them, it just a matter of time…
Tom Aalbers
  • 4,574
  • 5
  • 29
  • 51
3
votes
1 answer

RavenDb 4.0 - RavenJValue from Raven.Abstractions

I am migrating to RavenDB 4.0, as a part of Migration I came across setting the meta-data session.Advanced.GetMetadataFor(data)["Raven-Expiration-Date"] = new RavenJValue(data.Promotion.DateToUtc); The only place I found that type is…
madoxdev
  • 3,770
  • 1
  • 24
  • 39
2
votes
1 answer

How to permission a document that cannot be deleted by client user and can modified only?

How to permission a document that can be modified by client but not deleted ? Does RavenDB have notion of document permission for admin & non-admin users like in other Relational Databases ? I have a set of documents which will be created only from…
Alex David
  • 585
  • 1
  • 11
  • 32
2
votes
0 answers

Specific Port for RavenDB4 Data Subscription

I've included a Data Subscription in a C#/.NET Core 2.1 application targeting RavenDB 4.2.8. This was very solid as long as the RDB client in my code was permitted to randomly choose a port to use when establishing the client-to-database connection.…
2
votes
1 answer

How do I update a value within an array in Ravendb? I need to use Query

I have several documents. Below I will list just two. How do I update the value of the "Value field" that is below the "Name field: StartDate" in all documents? Example: 10/10/2019 to 09/09/2019 01/01/2019 to 09/09/2019 Document 1: { …
2
votes
1 answer

DllNotFoundException: Unable to load DLL 'librvnpal' when starting RavenDB 4.2 on windows 7 x64. How to correct this?

VC redistributable package is installed. Here is the detail of the exception: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Sparrow.Server.Platform.Pal' threw an exception. --->…
Yepeekai
  • 2,545
  • 29
  • 22
1
2 3 4