Tikfollowers

Litedb getcollection github. You need to use full path to open .

Aug 3, 2016 · Each time, i need to select exactly 20 rows for processing and then delete them from collection. GetCollection<T>, <T> will be your document type. You switched accounts on another tab or window. If I inspect the database everything is ok (see LiteCollection. First off, fantastic work on this project, very impressive. Insert(new TableRow {Id = id, Data = $"item {id}"}); Mar 9, 2020 · Saved searches Use saved searches to filter your results more quickly Apr 11, 2020 · @fu-hsi The Category data was inserted incorrectly: it was inserted as a subdocument of Product instead of a reference to another collection. LiteDatabase ("Filename=database. A9G-Data-Droid mentioned this issue on Sep 1, 2020. StreamExtensions. db;Password=dbPassword"); Dec 15, 2020 · I would expect DropCollection() to be quite fast at least in the order of "few seconds". If T is not a BsonDocument, LiteDB internally maps your class to BsonDocument. SELECT $. Run(() => { using (var db = new LiteDatabase(DbFileName)) { var col = db. Connection. This library allows the use of LINQ extensions methods for querying LiteDB. Transactions are memory only (thats why use too many memory) and journal write in disk twice. OrderByDescending(x => x. EmptyPage' to type 'LiteDB. Keeping a read connection open will block write operation. After connecting to the database and upon opening a collection the website crashes and the debug mode ends with no explanation. If <T> is not a BsonDocument, LiteDB internally maps your class to BsonDocument. LiteDB : 5. bla Jul 18, 2018 · LiteDb 4. var thedb = new LiteDatabase("Filename=data. 9 and I noticed a quite serious issue with DropCollection () method: dropping big collections (in my case ~5GB), causes LiteDB to produce a HUGE log file (I Dec 12, 2019 · GetCollection api throws exception when the class has two ID properties like 'TempId' and ,Id' and TempId is mapped as Id using Fluent API. GetCollection("Test"); var Apr 22, 2021 · Version Which LiteDB LiteDB" Version="5. NET NoSQL Document Store in a single data file - mbdavid/LiteDB LiteDB is a small, fast and lightweight . Provide Record with comparer for easier implementation of Dec 21, 2023 · Version LiteDB Version: 5. This reason is because LiteDB implement a full transaction and journal backup save. I'm using VB . GetCollection<TableRow>(_tableName); table. LiteDatabase. net website. mbdavid added the question label on Aug 4, 2016. Now, in v2, LiteCollection doesnt need LiteDatabase anymore, because uses only DbEngine (a new low layer of database). 15. GetCollection<Customer>(nameOfCollection); Feb 6, 2017 · I am using a LiteDatabase instance from multiple threads (as LiteDB advertises thread-safety). 10" / Windows 10 /. Code); col. Generic. BsonDocument' to System. Serialize( item)["_id"]); } Aug 30, 2019 · LiteDatabase. public class SomeItem { public string SomeProperty{get;set;} } } Jan 13, 2016 · WPF works, somewhat, intelligently with ObservableCollections to automatically update the GUI when changes within the collection occur. ReadContent(ByteReader reader) at LiteDB. 18363 Build 18363 / . MoveNext() 於 . 0. Add EntityBuilder fluent api mbdavid#12. Serverless NoSQL Document Store; Simple API, similar to MongoDB; 100% C# code for . And(predicate2); and call the find method. public record Item(ObjectId Id, int Value); and a collection that contains many of these. Feb 21, 2020 · var connectors = database. Threading. FindAll() And this IEnumerable is NOT used within the using-block Then the LiteDatabase is not properly disposed by the using-block Result: The IEnumerable can be used outside of the using block. 3 and Xamarin. Mutex. This has broken all previous code. CollectionService. List<LiteDB. LiteDB version master branch with the fixed bug above, Let say I have two methods that return a predicates: The first returns var predicate1 = t=>true; and the second returns the same thing var predicate2 = t=>true. I also observed this behaviour when using GetCollection<>(). mbdavid closed this as completed on Dec 24, 2015. 1 Windows 10 Describe the bug FindOne or FindById returns null sometimes although object is explicitly added into collection just before. BsonValue(id);//id is an int parameter passed in. Jan 15, 2018 · In v4, includes run on Find time and in v3, only when deserialize. 5 / NETStandard 1. 5) and was also seeing an exception when using LiteDatabase but only on Android. LiteDB. EntityFramework. cccsdh closed this as completed on Sep 1, 2018. Find(g => g. Jun 10, 2024 · LiteDB. db"); var result = thedb. Whenever I try to access the database from another location than my localhost, I get slapped with an Exception: Exception: System. ", ex); public BsonValue InsertCustomer(Customer customer) collection = _context. github-actions bot pushed a commit to Reddevildragg-UPM-Forks/LiteDB that referenced this issue on Nov 18, 2020. It doesn't follow that we would need to implement a queue for all DB operations to avoid a memory leak. I am randomly getting exceptions like this (not always mind you, just once every few thousand lookups or so): System. 7 (do not recompile, this is emulating dependency up-binding since most packages allow any minor version variant to be used Sep 30, 2020 · GetCollection is now returning Interface ILiteCollection (of T)) instead of LiteCollection (of T) Code to Reproduce. Sep 7, 2015 · It´s in early dev but change how LiteDB read/write data in disk. NET Core UWP UWP x86 Release mode Describe the bug Creating and saving to the LiteDB database works great in my app when compiled for x86 Debug mode. DBContext. Jan 12, 2021 · Hello, I'm using version 5. Add(String name) at LiteDB. When the program was restarted (for serval times), it reported an exception, and worked no logger. InsertBulk( nodes); } Mar 1, 2018 · Database is locked for more than 00:01:00. 7 and 5. Input is a plain json file. You signed out in another tab or window. LiteDatabase GetConn () => new LiteDB. at LiteDB. Interesting fact: it was just once since November 2017, and gone after app Feb 15, 2017 · mbdavid commented on Feb 17, 2017. GetCollection<RowClass>("Collection"); var data_list = col. Engine. However if you call Count () down the line to check are there any elements at all, LiteDb throws NullReferenceException. Thanks guys! It's really nice to know about this. I open the app: this class is created in the xamarin forms app constructor. b__0 Aug 13, 2015 · Performance and memory use drops in LiteDB when you are working with huge mass of data. e. Transaction [T] (String collection, Boolean addIfNotExists, Func`2 action) Looks like write lock wasn't realesed. So, let's go to the problem: I am trying to make some one-to-many relationships, but with no success yet. var engine = repo. in name. 2. EnsureIndex<DateTime>(pt => pt. The LiteQueryable<T> implementation is a warpper around a ILiteCollection<T> or a ILiteCollectionAsync<>. Just to enhance the description of the 3rd issue: Where (Expression<Func<T, bool>> predicate) . To do this, LiteDB uses the BsonMapper class: Apr 19, 2019 · Hi @igloo15, As you have noticed, it looks like adding/defining an Id Property is required by LiteDB. ReadPage(Byte[] buffer) at LiteDB. The time for LiteDB to return is locally relevant, but MongoDB return UTC format by default. db file. 17 OS: Windows 11 . public int Id { get; set; } public Dictionary<string, object> Data { get; set; } = new Dictionary<string, object>(); } Oct 23, 2019 · Thank you for the fast reply! Really appreciate it! The problem is, i get the collection via _collection = db. GetCollection(); where T is of type Device and the device has many parameters which are nested to up to I have a question about memory usage. 0 version I found a problem bothering me for a long time, thousands of users to use the database of the client, the total is 1 ‰ database, speaking, reading and writing mistakes, even lead to death cycle. For now, i am using this: var data_return = new List<RowClass>(); using (LiteDatabase db = new LiteDatabase(@"db")) {. LiteException: 'This engine instance already disposed' Lets say I get 10 tasks and iterate through them then the exception comes on "Next" after processing the first Task object. I have the following code: public class NDocument { [BsonId] public string Id { get; set; } public string Version { get; set; } public string Name { get; set The constructor LiteDatabaseAsync opens and wraps a LiteDB instant. Instance. LiteDB supports POCO classes to strongly typed documents. NET 4. ParentId Apr 21, 2018 · Consider the following: public class UniqueValueModel { public int Id { get; set; } public string Value { get; set; } } var collection = _db. Jun 9, 2017 · Saved searches Use saved searches to filter your results more quickly Jul 10, 2018 · I am using the latest version of LiteDB in an Asp. May 26, 2017 · System ran stably for a week,then a power failure happened. GetCollection<GenericEn Mar 18, 2015 · mbdavid closed this as completed on Mar 28, 2015. 0 in a single DLL (less than 450kb) First, I'm Brazilian too, and I'm very glad to see what Mauricio have made until now. 0 litedb. a batch of 1 record, then a batch of 10 records, then a batch of 2 records, then a batch of 1 record. But it is slow, more than 1-5-10 minutes, so i suspect, index filter is working incorrectly. Read mode and release/delete this file when finish. @kuiperzone, I has reading about other solutions to process safe and had an idea: use an -lock aditional file to control concurrency. Global. NewPage[T](BasePage prevPage) at LiteDB. EnsureIndex(x => x. Aug 30, 2018 · Repository is now current with LiteDB version as well - Moved from MyGet to VSTS for continuous integration so that Nuget pushes happen each build - versus once a week. Forms (4. For this I have created a simplest class and am trying to store it in the database. Will the future version of LiteDB be consistent with mongo? Features. 4. When getting a list of records from LiteDb it would be nice if you could give the function a base collection type to derive from instead of the LiteDbCollection. SharedDataReader. When a process want read only data, open/create this file in FileShare. If I try to change the connection to connection=direct or removing the connection parameter from CONNECTION string Apr 24, 2020 · I am stuck on finding solution for below query. Oct 24, 2017 · An IEnumerable<T> is obtained from a call to LiteDatabase. Types devmaestro1 changed the title [QUESTION] Cannot search by property when it is a BsonId [QUESTION] Cannot search collection when using an interface in GetCollection() Sep 22, 2022 Sign up for free to join this conversation on GitHub . e. NET MVC 5 project, choosing the Individual User Accounts authentication type. Remove the predictability, toss the yield keyword out of the window. You need to use full path to open . NET 7 version Describe the bug When I am inserting in an empty database a high number of records (11500 to be exact), I am facing an issue when calling at a later stage ILiteCollection. 10 and I'm experiencing this issue. I decided to use LiteDb. 0 in a single DLL (less than 450kb) Nov 17, 2020 · Write any code using the GetCollection(String) overload and compile with 5. Add an Id property. Include(x=>x. Transaction[T](String collection, Boolean addIfNotExists, Func2 action) at LiteDB. If you get a collection with GetCollection<BaseEntity>() and insert an especialized object from BaseEntity, like Entity1, serialization Object Mapping. When I query database for an object which uses DbRef for referencing other objects, I often have the Id of the referenced objects set to 0 (I use integer Id field). Nov 14, 2016 · Hallo, I isolated access to LiteDB in my code. Dispose(Boolean disposing) 於 LiteDB. ` The text was updated successfully, but these errors were encountered: Apr 26, 2019 · I have many desktop applications developed over last 4-5 years. Dec 6, 2015 · It seems there is little document about how to delete a record! string key = DbHelper. I expect documents to be filtered and retrieved quickly by IndexField filter. dll and upgraded later doesn't seem to be in management of version 4. Collection =this. And when I try to use lambda, as a parameter, this does not work. Aug 4, 2016 · mbdavid commented on Aug 4, 2016. 13 does not. NET - Option Strict "On" All previous code I used (for years) returns LiteCollection (prior to V5). Mar 8, 2020 · I also ran into problems with LiteDB 5. InvalidCastException: Spe Oct 7, 2017 · LiteDB tries to open file in application folder, near dll/exe. Collections. By default, UWP-apps have access to LocalFolder. Provide BsonCollectionAttribute to get and set collection names. NET NoSQL embedded database. 5 are you using. 18 Windows 11 x64 I ran a simple test with the following code and found that the latest version (5. NET Core 3. Jun 28, 2018 · Cannot implicitly convert type 'LiteDB. Define an existing property as the Id by using the entityMapper. Take(int count) As far as I understood, once this Methods are implemented, Dynamic LINQ goves me the option to use LINQ expressions in text form. Threading. If your collection are small, no problem. GetCollection<T>(). PageBuffer objects. 👍4 reactions. static void test<T>(Driver driver, Func<T, bool> func) { var somethings = driver. In this case, you will resolve this using a single SQL query (or Linq query) like: SELECT MAX(_id) FROM your_c May 16, 2020 · Version LiteDB 5. Name);} At first everything appeared to work fine. {. WHERE Customer. BasePage. INCLUDE Customer. NET framework 4. collection. Count Sep 12, 2019 · Hi. Root); The Save method iterates over our item tree, checks for each changed item, whether it was already in the current file (with FindById) and calls Insert or Update respectively. Doing these operations sequentially rather than asynchronously does not cause a memory leak. So this was the issue. But UWP-apps work in sandbox and can't open any file in any folder. Uninstall-Package EntityFramework. <>cDisplayClass22_0. Code to Reproduce. Insert(IEnumerable1 docs) LiteDB - A . GetCollection<PurchaseOrder(). <ToDocuments>d__26. ShowIndex); // OK int max = _db. Write () at LiteDB. Used for create a LiteDB instance and use all storage resources. Sleep (1000) in readWork () outsite using. LiteEngine. Should work same as in v5 alternative: public IEnumerable<Log> GetLogs(BsonExpression expression) var connectors = database. To solve your issue, you actually have 3 options you can choose from. LiteDatabase(AppBase. GetCollection<EditorDocument(). Find(x=> function. Database was the same reference of initial LiteDatabase instance. All other fields of the referenced objects are fully populated. exe points to its own mydbfile dabatase instead of sharing the same mydbfile. Add EntityBuilder fluent api #12. one: the one-object second: the n-objects third: a link-collection furthe Jun 16, 2021 · This causes an infinite and very fast memory leak attributable to 8Kb LiteDb. OS version: Windows XP Professional SP3 . The below wrapper APIs may be useful for others. You should remove this entry, insert the categories in a separate collection (if you haven't already) and then insert the product data again (the existence of BsonRefAttribute should be enough for it to be inserted correctly this time). v5 contains a query engine that will made include before run filter. 931 [LiteHelper][6] Recreating Db due to ErrorCode: Unable to cast object of type 'LiteDB. even if you leave it there, the batches should be highly unpredictable. LockService. LiteEngine Oct 16, 2018 · LiteDB. You cannot use Dictionary as base class in collection. FileName"); After successful creation of index the GetIndexes() functions returns two index one is "_id" and "FileName" Now LiteDB contains nearly ONE MILLION Rows in a Table and When i try to retrieve all one million data from LiteDB using below Find() function it's taking more throw new Exception("Can find or create LiteDb database. Author. I have used ensureindex on "time" and "code" Propertites like this: var col = conn. liteDb. GetPage[T](UInt32 pageID) at LiteDB. GetCollection(CollectionName). Was the problem due to the improper use of litedb?Or other reasons?what should I do ? Please forgive me for my poor English expression. 10 int max = _db. You can try in SQL like: EXPLAIN. Try put Thread. Context. So, there are some situation that change. OrderBy(Expression<Func<T, TKey>> keySelector) . IO. In ~/Models/IdentityModels. LiteException: Invalid BSON data type 'Null' on field '_id'. But in the output I only get _id without my data. This way we don't have to create a completely Jan 5, 2021 · col. Fix some concurrency journal locks + reflection lock mbdavid#78. mbdavid added a commit that referenced this issue on Nov 8, 2015. So, you can insert any document structure (or object type) inside same collection. dll to Unity3D Assets/Plugins folder. using litedb v5 Query : db. 18) throws a "Maximum number of transactions reached" error, but the older version 5. 0 milestone on Dec 24, 2015. I recently needed to change data storage used in the software. GetCollection<T>(key); var value=new LiteDB. 16. 3/2. Jul 27, 2021 · I wanted to test how fast a large database Rebuild (over 50,000 records) would run on my machine. LogDate); Same as in v4 where it worked. LiteCollection. b0(CollectionPage col) at LiteDB. Aug 25, 2017 · Hi, mbdavid LiteDB and MongoDB stores times in UTC by default. 6. EnsureIndex("FileName", "$. Remove the Entity Framework packages and replace with AspNet: Uninstall-Package Microsoft. for example if i have a record like. Install-Package AspNet. i. ReleaseMutex() 於 LiteDB. IOException: 'Sharing violation on path /data/user/0/bla. Nov 23, 2017 · Hello, I'm using is 1. GetCollectionPage(String name, Boolean addIfNotExits) at LiteDB. copy the LiteDB. GetCollection<ProcessedDetection at LiteDB. If you want store schemeless structure using Dictionary, you need some like this: public class Entity. Insert( inst); col. Compile()" methods to "CompileAot()" in LiteDB sources. The problem I am facing is that I have most of the classes inherited from ObservableCollection. Name like 'JOHN%'. Insert(test);} And apparently Insert is returning Id of a new document and I wanted to return bool value (indicating success or not). `public LiteDB. SharedEngine. private string _dbName; public void CreateDB(string dbName) _dbName = dbName; // Open database (or create if doesn't exist) mbdavid commented on Dec 8, 2016. as this will ease fixing functionality in one place or adding functionality, without Nov 5, 2015 · Using LiteDB to insert a DTO to a LiteDatabase using the following code hosted in an OWIN self-hosted web server: return await Task. Mar 18, 2018 · I have created wrapper APIs to create, delete, insert and find by id. 8 / Windows 10 Version 10. Create a new ASP. 👍 11 SchubertDNS, MichaelRumpler, dchasman, Flavelius, digitalkirkley, anaximander23, JosefNemec, jorgeamado, dmitryzarubin, rveda, and viceice reacted with thumbs up emoji Feb 10, 2015 · You signed in with another tab or window. I press the back button on Android and my app goes in background. Problem: I have about 10K documents in LiteDb. 1. Also, your app needs to have access to folder with . When a function that causes an evaluation is called it sends a message to the background thread, where the required action is performed by the LiteDb instance. When you get a ILiteCollection<T> instance from LiteDatabase. Apr 11, 2023 · LiteDB: 5. Invoke(x)). Marking the issue closed. Nobody is going to get an SSD just for using LiteDB. GetCollection, T will be your … Mar 9, 2020 · System. public class BaseClass { public long TempId { get; set; } } public class TestClass : BaseClass { Feb 27, 2019 · In v5 you can query as expected. After combining the two results : var result = predicate1. Provide BsonDocumentExtensions for dynamic key and value retrieval. DbName)) var op = liteDb. LiteDB support N concurrency read instances at same time, when when 1 needs write must be open in exclusive mode. Delete( BsonMapper. cs: Mar 6, 2018 · LiteDB. 1 and the latest from repo, Windows 10, net45 Describe the bug NullReferenceException in LiteCollection. BsonDocument>' Can you please advise whats needs to be changed. ApplicationException: Object synchronization method was called from an unsynchronized block of code 於 System. GetCollection<Log>(Database. HeaderPage. 354f126. AspNet. Find Nov 2, 2017 · Saved searches Use saved searches to filter your results more quickly Nov 29, 2017 · The old datas's id in database file which made by version 2. I'm still working v5 version that will the a biggest change in this project. AppContext. GetCollection<User>("users"); Then swap the dll in bin to version 5. 👍4mbdavid, xophiix, rollamarble, and wanmeixx reacted with thumbs up emoji. The LiteDB mapper converts POCO classes documents. Max(g => g. net classes/interfaces, so we can make one library that initialize your db, and then return the general ILiteCollection, with no need to reference your nuget to all other projects in the solution. Dec 20, 2017 · replace all ". When you get a LiteCollection instance from LiteDatabase. Skip(int count) . Apr 13, 2021 · v5. 5. I recall my app from the background selecting it from recent apps: when a new LiteDatabase instance is created I have the same error: System. PID); return true; } In the connection string I set connection=shared but it seems that any instance of MyApp. Given your situation, I believe the fastest way to delete many documents would be something like this (assuming your class has an Id field): db. NET NoSQL Document Store in a single data file - mbdavid/LiteDB ILiteCollection<T> GetCollection<T>(string name, BsonAutoId autoId = BsonAutoId Sep 17, 2020 · this. So you cannot create LiteDatabase in this way. Only tested briefly but worked on UWP and iOS, like @LumiProj mentioned this exception came from the LiteDatabase ctor. The problem will be deserialize this BsonDocument to to your class. dll. GetCollection("MyCollection"); how can i assign to each item's value Nov 13, 2015 · mbdavid added this to the v2. Reload to refresh your session. Writing to LiteDB target does nothing. Find(o => o. CloseDatabase() 於 LiteDB. Time); And there is only about 1200 data item to insert into the collection per hour, but when the program query LiteDB - A . It also starts a background thread which all actions are performed in. I am using LiteDB 5. Dispose() 於 LiteDB. FullName);//here to delete the . It's the database connection /// </summary> public partial class LiteDatabase : ILiteDatabase { #region Properties private readonly ILiteEngine _engine; private readonly BsonMapper _mapper; private readonly bool _disposeOnClose; /// <summary> /// Get current instance of BsonMapper Sep 8, 2017 · using (var liteDatabase = new LiteDatabase(connectionString)) var items = liteDatabase. Oct 12, 2020 · Deleting by id is always faster. Identity. I'm using this code to tests speed code diff. I saw a similar exception/issue mentioned in #1275. get rid of transaction. compile the LiteDB dll. using LiteDB; namespace Mar 30, 2020 · return this. InsertDocument(CollectionPage col, BsonDocument doc, BsonType autoId) at LiteDB. Mar 22, 2020 · Version Latest build commit: 811e6ad . NET Framework: 4. // Get a collection (or create, if doesn't exist) var col = db. then its works on all platforms including iOS and Android. Define an existing property as the Id by adding the [BsonId] attribute. When you get a ILiteCollection instance from LiteDatabase. col. I've seen this issue #597, but it doesn't look like our case. To do this, LiteDB uses the BsonMapper class: Aug 30, 2016 · get rid of SSD. Revision => someValue). thank you! Feb 18, 2020 · Another way to implement it is to give the Insert and Delete call its own instance of LiteDatabase via the using statement like: using (var db = new LiteDatabase("Filename=Mydb")) var table = _db. May 3, 2017 · Saved searches Use saved searches to filter your results more quickly Mar 14, 2017 · Here's my scenario, I need to insert around 6 million records from a flat json file into LiteDB. Types. CollectionPage'. I think it has to do with the update of the TaskExecution collection in between but it was always working in at least 5. (REQUIRED) Describe the bug I'm not getting access to the database when the application is not an administrator , database in mode share Code t LiteDB is a small, fast and lightweight . GetCollection<Point>("RealConc"); col. GetCollection(_Collection_CodeGroups). GetCollection The LiteDB mapper converts POCO classes documents. Current. Expected behavior. I noticed that when you call GetCollection method for some entity, and if that collection does not exist, it should create a new one. Log. Net Framework version:4. GetCollection("items"); Save(items, database. Nov 2, 2023 · Same for me, I'm tying to find out a way to update one field of a record with a new value using the UpdateMany. GetCollection(CollectionName) Instructions. GetCollection<T>(typeof(T). 0 full LiteDB Nov 13, 2016 · Saved searches Use saved searches to filter your results more quickly Oct 18, 2016 · github-actions bot pushed a commit to Reddevildragg-UPM-Forks/LiteDB that referenced this issue Nov 18, 2020 Initial neasted include support mbdavid#322 7997e96 Nov 3, 2017 · WAL support multiple write threads and implement atomicity and durability So, I'm implementing WAL in LiteDB and BeginTrans() will be back in next major version. For now, the results are (in my machine): I want to improve BsonMapper too. But you can still use: var db = new LiteDatabase(""); var col1 = db An IQueryable wrapper implementation for LiteDB with additional async extensions. Insert(String collection, IEnumerable1 docs) at LiteDB. Update(T) Code to Reproduce using (var db = new LiteDatabase(":memory:")) { var c1 = db. LiteException: Datafile is not a LiteDB database. <>c__DisplayClass4_0. EnsureIndex<string>(pt => pt. Provide CustomBsonMapper with sensible defaults and support for more data types. The LINQ extenions call are delegated to the equivalent methods of the LiteDB API. g. Next, I can read directly from disc, convert into a BsonDocument and insert the Context =context;this. All reactions. Transaction[T](String collection, Boolean addIfNotExists, Func2 action) Version LiteDB 5. (using EXPAIN you will see how engine will resolve your query - remove EXPLAIN to run) Assignees. Provide Factory pattern for easier building of LiteDB instances. The only way to recover from this situation is to kill our process that is hosting the database. In DbEngine there is not strong type entity classes, only BsonDocument. Dec 4, 2018 · 10:41:29. BeginTrans(); foreach(var item in items) {. LiteCollection1. LiteQueryable`1. ILiteCollection<Item> collection = db. Hello everyone, I have a one-to-many relationship and i want to model the relations independent so i use three collections. using (var liteDb = new LiteDB. GetCollection(TableName). E. Describe the bug Requests to read or write a collection hang up and get no response when being used by multiple threads. OrderItems) , want to include Model DTOs : public class PurchaseOrder { public int Id { get; set; } public DateTime Dat Feb 26, 2016 · LiteDB is a Document database (not an object database). FROM Order. That uses general and standard . I now have to do an explicit cast on each line of code that uses. PageService. GetCollection<T>, T will be your document type. Also please review and let me know, if there are any critical issues. DeleteAll(). This is the part of stack trace: at LiteDB. TableName); return connectors. I am trying to perform db. GetCollectionName(typeof(T). In you case, you know that you are not running query over any index and you are doing an full scan search. lm bz gm ak py nt ia ss hb st