码迷,mamicode.com
首页 >  
搜索关键字:linq sum    ( 28189个结果
MVC3/4 自定义HtmlHelper截断文本内容(截取)
在MVC目录下新建一个名为Extersions 的文件夹,在该文件夹中新建一个截断文本类,取名为:CutOfTextExtersions该类代码如下:using System;using System.Collections.Generic;using System.Linq;using Syste...
分类:Web程序   时间:2014-06-29 13:35:39    阅读次数:201
Asp.Net MVC4开发二: Entity Framework在Asp.Net MVC4中的应用
ORM作为一种数据库访问机制已广泛地应用于各种项目当中,在.Net开发中,应用比较广泛的ORM框架大致有下面几个: 官方支持的有:Linq to SQL,Entity Framework。三方的有:NHibernate。前面介绍过Linq to SQL的应用,这篇介绍一下Entity Framework在Asp.Net MVC4中的应用。 首先用Visual Studio(2012或2...
分类:Web程序   时间:2014-06-20 12:01:44    阅读次数:361
LeetCode: Path Sum II [113]
【题目】 Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 / 4 8 / / 11 13 4 ...
分类:其他好文   时间:2014-06-20 10:53:08    阅读次数:181
projecteuler---->problem=20----Factorial digit sum
n! means n (n 1) ... 3 2 1 For example, 10! = 10 9 ... 3 2 1 = 3628800, and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27. Find the sum of the digits...
分类:其他好文   时间:2014-06-20 09:34:10    阅读次数:215
SharePoint2013导入Excel到列表
using Microsoft.SharePoint; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Linq; using System.Web.UI.WebCo...
分类:其他好文   时间:2014-06-07 14:39:38    阅读次数:226
projecteuler---->problem=21----Amicable numbers
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and b...
分类:其他好文   时间:2014-06-07 13:40:53    阅读次数:226
可以导入导出到Excel支持多表头多层显示的表格控件Essential Grid
Essential Grid for Windows Forms是一款功能强大的表格控件,很多功能和Excel表格相似,具有15种单元格类型,可以导入导出到Excel,支持多表头,多层显示,合并单元格,插入计算公式,支持LINQ,过滤和分组等。具体功能:支持Banner Cells,可以联合背景和邻...
分类:其他好文   时间:2014-06-07 09:42:31    阅读次数:338
zTree v3.5配置
页面 一般处理程序using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace Web...
分类:其他好文   时间:2014-06-05 17:43:59    阅读次数:286
面向对象多态之接口
申明下:我也是新手,以下如有不对或不合适的地方望指出,一起交流O(∩_∩)O哈!好了,转入正题 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 nam....
分类:其他好文   时间:2014-06-05 16:48:19    阅读次数:220
leetcode--Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".public class Solution { /**The program is us...
分类:其他好文   时间:2014-06-05 14:08:35    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!