Out with MagicOnion, in with LiteNetLib
Removed MagicOnion Added LiteNetLib Created client and server abstractions Fixed serialization bugs
This commit is contained in:
parent
433a7b4ae4
commit
e96146b7bb
869 changed files with 59401 additions and 16812 deletions
|
|
@ -0,0 +1,26 @@
|
|||
using Remotion.Linq;
|
||||
using Remotion.Linq.Parsing.Structure;
|
||||
using RethinkDb.Driver.Ast;
|
||||
using RethinkDb.Driver.Net;
|
||||
|
||||
namespace RethinkDb.Driver.Linq
|
||||
{
|
||||
public static class LinqExtensions
|
||||
{
|
||||
public static RethinkQueryable<T> AsQueryable<T>( this Table term, IConnection conn )
|
||||
{
|
||||
var executor = new RethinkQueryExecutor( term, conn );
|
||||
return new RethinkQueryable<T>(
|
||||
new DefaultQueryProvider(
|
||||
typeof( RethinkQueryable<> ),
|
||||
QueryParser.CreateDefault(),
|
||||
executor )
|
||||
);
|
||||
}
|
||||
|
||||
public static RethinkQueryable<T> Table<T>( this Db db, string tableName, IConnection conn )
|
||||
{
|
||||
return db.Table( tableName ).AsQueryable<T>( conn );
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue