摘要: C# 海量数据瞬间插入到数据库的方法当我们在数据库中进行大量的数据追加时,是不是经常因为数据量过大而苦恼呢?而所谓的海量数据,一般也是上万级的数据,比如我们要添加一百万条数据,应该如何提高它的效率呢?Oracle数据库:普通肉垫式 什么叫批量插入呢,就是一次性插入一批数据,我们可以把这批数据理解为一... 阅读全文
posted @ 2014-07-22 11:44 net_miao 阅读(2857) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-05-30 09:39 net_miao 阅读(1904) 评论(0) 推荐(0) 编辑
摘要: 方法1:使用ajaxStart方法定义一个全局的“加载中。。。”提示$(function(){$("#loading").ajaxStart(function(){ $(this).html("<img src='/jqueryStu/images/loading.gif' />"); }); $("#loading").ajaxSuccess(function(){ $(this).html(""); // $(this).empty(); // 或者直接清除 });});<di 阅读全文
posted @ 2013-06-06 09:40 net_miao 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 学习lambda动态创建其实是一个巧合,是因为朋友遇到的一个问题。需求大概是这样的,在页面中选择表中的一个字段类型,后台便返回根据该字段进行OrderBy的数据。因为他项目用的是linq to entity ,想了一会,果断感觉应该在lambda上做文章。相比那些拥有丰富经验的大神来说,我这代码微不足道。这里只是做下笔记,以后再次遇到类似问题的时候可以方便使用。再次声明,我所写的这个方法,没有技术含量,仅供和我一样身处菜鸟级别并想在编程界一直走下去的人学习。(这都是扯淡,其实根本原因是上班太无聊了。。。。)public List<E_ActivityMain> GetAactivi 阅读全文
posted @ 2013-04-12 15:55 net_miao 阅读(268) 评论(0) 推荐(1) 编辑
摘要: public IQueryable<E_Admin_Role_Menu> GetRoleMenu() { var linq = from role in DB.Admin_Role_Menu join menu in DB.Admin_Menu on role.MenuId equals menu.MenuId join column in DB.Admin_Column on menu.Col... 阅读全文
posted @ 2012-12-14 10:59 net_miao 阅读(163) 评论(0) 推荐(1) 编辑
摘要: public interface IRandomTextGenerator { /// <summary> /// Gets or sets the settings. /// </summary> /// <value>The settings.</value> RandomTextGeneratorSettings Settings { get; set; } /// <summary> /// Generates this instance. /// </summary... 阅读全文
posted @ 2012-11-28 17:39 net_miao 阅读(116) 评论(0) 推荐(1) 编辑
摘要: public static class CryptoHelper { #region 加密/解密的主要算法 private static readonly Byte[] _KeyByte = { 81, 1, 132, 230, 34, 29, 50, 200 }; private static readonly Byte[] _IVByte = { 84, 41, 32, 50, 93, 47, 4, 154 }; /// <summary> /// 字符串加密 /// </summary> ... 阅读全文
posted @ 2012-11-28 17:36 net_miao 阅读(152) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web.Mvc;using C2BUY.Community.Entity;using System.Web.Routing;namespace C2BUY.Community.Web.Core.UIHelper{ public class PagerBuilder { private readonly HtmlHelper _html; private readonl... 阅读全文
posted @ 2012-11-28 17:34 net_miao 阅读(168) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-11-28 17:31 net_miao 阅读(0) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace C2buy.Framework.Utility.StopWords{ public class TrieTree { private readonly Dictionary<char, TrieTree> Children; public bool End { get; set; } public TrieTree() { ... 阅读全文
posted @ 2012-11-28 17:24 net_miao 阅读(245) 评论(0) 推荐(0) 编辑