1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using CZFW.Framework.Model.ViewModel;
- using MongoDB.Bson;
- using MongoDB.Driver;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace CZFW.MDB
- {
- public interface IPage
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
- BsonArray GetList(string sid, string pageKey, string type, string query = "{}", string projection=null, int pageIndex = 1, int pageSize = 20, string sort = "{}", bool userCusor = false);
- BsonDocument Get(string pageKey, string dataKey, string type, string projection = null);
- BsonDocument GetByName(string pageName, string dataKey, string type, string projection = null);
- BsonDocument GetOne(string sid, string pageKey, string query, string type, string projection = null, string sort="{}");
- BsonDocument GetOneByName(string sid, string pageName, string query = "{}", string projection = "{}", string sort="{}");
- long GetCount(string sid, string pageName, string query = "{}");
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- BsonArray GetListByName(string sid,string pageName, string type=null, string query = "{}", string projection = "{}", int pageIndex = 1, int pageSize = 20, string sort = "{}", bool useCusor = false);
-
- IMongoCollection<BsonDocument> GetCurrentTable();
-
-
-
-
-
-
-
-
-
-
- BsonArray GetRelated(string sid, string pageName, string excludeId = null, string query = "{}", string projection = "{}", int size = 4);
- ResultModel Inc(string pageName, string key, string field, int amount);
- }
- }
|