01 2018 档案
摘要:数据库中存在存储过程GetCategory: ALTER proc [dbo].[GetCategory] @cid int as begin select * from Categories where @cid = cid end 执行此存储过程的代码如下: public IEnumerable
阅读全文
摘要:事务处理 using (TransactionScope scope = new TransactionScope()) { context1.SaveChanges(false); context2.SaveChanges(false); scope.Complete(); context1.Ac
阅读全文
摘要:take 前几 skip 跳过前几 takeWhile SkipWhile Union //求并集 1 int[] numbersA = { 0, 2, 4, 5, 6, 8, 9 }; 2 int[] numbersB = { 1, 3, 5, 7, 8 }; 3 4 var uniqueNumb
阅读全文
摘要:efEntities tc = new efEntities(); 显式 LINQ 语法的一个好处是它使操作符顺序更加明确。对于前一个示例,可以很清楚的看到它从 employees 集合开始,然后调用 Where(),最后调用 Select()。 Linq To Entity表达式查询 基本查询:v
阅读全文
摘要:1.HTTP请求格式: <request line> <headers> <blank line> [<request-body>] 在HTTP请求中,第一行必须是一个请求行(request line),用来说明请求类型、要访问的资源以及使用的HTTP版本。紧接着是一个首部(header)小节,用来
阅读全文