c# - RethinkDB - When I'm runned GetAll() method throw error -


i'm new start using rethinkdb i'm successed insert process don't give record getall method because i'm runned getall method give me message.

the sequence finished. there no more items iterate over.

below rethinkdb codes

using system.collections.generic; using rethinkdb.driver; using rethinkdb.driver.model; using rethinkdb.driver.net;  namespace mhg.projectmanager.service {     public class repository<t>     {         private connection connection;          public repository()         {             connection = rethinkdb.r.connection().db("projectmanager").connect();         }          public ilist<t> getlist()         {             var type = typeof(t);             var list = new list<t>();             // throw error line             var connections = rethinkdb.r.table(type.name).getall("").run<t>(connection);             foreach (t connection in connections)                 list.add(connection);             return list;         }          public ulong insert(t item)         {             var type = typeof(t);             // line successed , inserted property has everytime high 0.             var result = rethinkdb.r.table(type.name).insert(item).runresult(connection);             return result.inserted;         }     } } 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -