mariusin79
mariusin79
ColoreConsoleTarget throws exception when colorizing words when no word row highlighting rules set
```c# private void WriteToOutputWithColor(LogEventInfo logEvent, string message) // this will enable word highlighting if \n, event without word highlighting rules: bool wordHighlighting = !ReferenceEquals(colorMessage, message) || message?.IndexOf('\n') >= 0; WriteToOutputWithPrinter:...
I write some bdd-style tests which means i run Given/When once for the class fixture and multiple assertions (Facts) afterwards. The shared state: public class Fixture : IDisposable, IScenario {...
Error message: DDL Execution for 'SchemaDiff for Foss.Domain.Write.Schedule.Stream' Failed! CREATE INDEX mt_doc_stream_idx_encoder_id ON foss.mt_doc_stream ("encoder_id"); The index is generated because of: public class ForeignKeys : MartenRegistry { public ForeignKeys() {...
The upsert-functionality is nice, but way to intrusive in some cases. Assuming that inserts and updates are equal operations is an assumption which can't possibly fit all scenarios. A few...
// this loads the document, regardless of the mt_deleted flag var stream = await session.LoadAsync(command.StreamId); // this filters out deleted documents await session.Query().Where(s => ..) // query with inline sql...
I hope I am wrong on this one: [Test] public void Does_Marten_support_transactions() { var store = DocumentStore.For(options => { options.Connection("..."); }); // the transaction scope does not call "Complete" and...
My localpostgres server is running with time zone UTC: select * from pg_settings where name = 'TimeZone'; // yields UTC If I execute the following: var streams = await session.Query()...
We are using a different patching tool than Marten, which means that we are handling table and index creation outside of Marten. We do not however want to fiddle with...
The "AssertSchema.."-function will throw up if the table you are inserting or updating into has extra columns Marten does not know of. This is easy to reproduce, just add a...
One distributor, two workers, each worker has one worker thread. Service has messages on distributor queue and one each worker. Stop worker 2, set number of threads to 0, restart...