上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 66 下一页
摘要: 请开启极速模式 阅读全文
posted @ 2017-01-13 14:13 94cool 阅读(3322) 评论(0) 推荐(0)
摘要: Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合 string sqlstr=”select * from tblname where name like :name”; var paramvalue = string.Format("%{0}%", keyword); object param = new { name= paramvalue }; ... 阅读全文
posted @ 2017-01-07 17:56 94cool 阅读(1090) 评论(0) 推荐(0)
摘要: 在web.config中添加如下的配置试试: 阅读全文
posted @ 2017-01-05 21:40 94cool 阅读(1977) 评论(2) 推荐(0)
摘要: 1、在上下文里重载OnModelCreating: //没用到这个方法 protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.HasDefaultSchema("这里写你的Oracle用 阅读全文
posted @ 2017-01-01 19:46 94cool 阅读(1680) 评论(0) 推荐(1)
摘要: MongoDB查询转对象是出错Element '_id' does not match any field or property of class 解决方法: 1、在实体类加:[BsonIgnoreExtraElements] 2、或者定义public ObjectId _id { get; set; } 例子: [BsonIgnoreExtraElements] public... 阅读全文
posted @ 2016-12-28 17:12 94cool 阅读(4433) 评论(0) 推荐(1)
摘要: var srcTbl = "20161226"; var destTbl = "20161226-bak"; 方式一: MongoClient client; MongoServer server; MongoDatabase db; MongoClientSettings setting = new MongoClientSettings(); settin... 阅读全文
posted @ 2016-12-28 14:17 94cool 阅读(2096) 评论(0) 推荐(0)
摘要: class Program { static string mongodb = "mongodb://127.0.0.1:27017"; static string database = "dbCardInfo"; static string tblName = "fcd1"; static Mon 阅读全文
posted @ 2016-12-22 09:16 94cool 阅读(1114) 评论(0) 推荐(0)
摘要: c# (ENUM)枚举组合类型的谷歌序列化Protobuf,必须在序列化/反序列化时加上下面: RuntimeTypeModel.Default[typeof(Alarm)].EnumPassthru = true; [ProtoContract] class LbsItem { [ProtoMember(1)] pub... 阅读全文
posted @ 2016-12-21 16:09 94cool 阅读(2321) 评论(0) 推荐(0)
摘要: 必须JobManager初始化 方式1: public void Start() { JobManager.AddJob(() => FetchingData(), schedule => { schedule.ToRunEvery(1).Days().At(10, 8); ... 阅读全文
posted @ 2016-12-20 10:22 94cool 阅读(2301) 评论(0) 推荐(0)
摘要: from:http://www.data321.com/shujuku/20160514417/addToSetQianMianBuXuYaoJinXing 插入文档: SQL语句: INSERT INTO 表名 (列名.......) VALUES(对应的列值.........); MongoDB语句: db.集合名.insert({键:值,键:值,键:值.......... 阅读全文
posted @ 2016-12-16 11:54 94cool 阅读(2055) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 66 下一页