示例#1
0
 /// <summary>
 /// 환경설정 리스트
 /// </summary>
 /// <param name="taId">TA아이디</param>
 public List<BsonDocument> List(string taId)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta_site_setting_templete");
     return MongoHelper.Find(Query.EQ("ta_id", taId));
 }
示例#2
0
 /// <summary>
 /// Site, Ta별 환경설정 리스트 
 /// </summary>
 /// <param name="siteId">사이트아이디</param>
 /// <param name="taId">TA아이디</param>
 /// <returns>List</returns>
 public List<BsonDocument> SiteSettingList(string siteId, string taId)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta_site_setting_templete");
     return MongoHelper.Find(Query.And(Query.EQ("ta_id", taId), Query.EQ("exportSite", siteId)));
 }
示例#3
0
 /// <summary>
 /// GEP 상품 리스트
 /// </summary>
 /// <param name="query">조건</param>
 /// <returns>GepItemsData Class List</returns>
 public IQueryable<GepItemsData> List(QueryComplete query)
 {
     List<GepItemsData> List = new List<GepItemsData>();
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "gep_items");
     return MongoHelper.Find<GepItemsData>(query);
 }
示例#4
0
 /// <summary>
 /// Export 사이트 리스트
 /// </summary>
 /// <param name="query">조건</param>
 /// <returns></returns>
 public IQueryable<ExportSite> ExportSiteList(QueryComplete query)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "export_site");
     return MongoHelper.Find<ExportSite>(query);
 }
示例#5
0
 public IQueryable<Ta_Templete> TaTempleteFindAll(string taId, string site_id)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta_template");
     return MongoHelper.Find<Ta_Templete>(Query.And(Query.EQ("ta_id", taId), Query.EQ("site_id", site_id)));
 }
示例#6
0
 public IQueryable<TaInfo> TaSiteFind(string taId)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "ta");
     return MongoHelper.Find<TaInfo>(Query.EQ("gmkt_id", taId));
 }
示例#7
0
        public void UpdateMultiple()
        {
            GEPMongoDacHelper dac = new GEPMongoDacHelper("test", "book");

            QueryComplete query = Query.In("_id"
                , BsonValue.Create(6)
                , BsonValue.Create(7)
            );

            List<Book3> books = dac.Find<Book3>(query).ToList();

            foreach (Book3 book in books)
            {
                book.Age += Convert.ToInt32(book._id);
                dac.Save<Book3>(book);
            }

            UpdateBuilder update = Update.Set("tt", "1");
            dac.GetCollection().Update(query, update, UpdateFlags.Multi);
        }