上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 114 下一页
摘要: 命名空间:using System.Data.Objects;var query = db.TxtRes.Join(db.LangRes, a => new { id1 = a.ResID, id2 = a.ResID }, b => new { id1=b.ID,id2=b.ID }, (a, b... 阅读全文
posted @ 2015-12-10 11:42 甜菜波波 阅读(1270) 评论(0) 推荐(0)
摘要: sql 版:SELECT [t0].[OrderID], [t0].[CustomerID], [t0].[EmployeeID], [t0].[OrderDate], [t0].[RequiredDate], [t0].[ShippedDate], [t0].[ShipVia], [t0].[Fr... 阅读全文
posted @ 2015-12-10 11:30 甜菜波波 阅读(2609) 评论(0) 推荐(0)
摘要: var customers = DB.Customer.Join(DB.Commission,cst => cst.CommissionId,com => com.CommissionId, (cst, com) => new Customer(){CommissionId = com.Commis... 阅读全文
posted @ 2015-12-09 18:54 甜菜波波 阅读(2028) 评论(0) 推荐(1)
摘要: 在.Net 中,程序集(Assembly)中保存了元数据(MetaData)信息,因此就可以通过分析元数据来获取程序集中的内容,比如类,方法,属性等,这大大方便了在运行时去动态创建实例。MSDN解释如下: 反射提供了封装程序集、模块和类型的对象(Type 类型)。可以使用反射动态创建类型的实例... 阅读全文
posted @ 2015-12-09 18:29 甜菜波波 阅读(221) 评论(0) 推荐(0)
摘要: alert 效果:{"a":"aaaa","nick":"ccccc","keyword":"ccccc"}后台可以使用NewTonJson.net 接收json字符串 阅读全文
posted @ 2015-12-08 10:47 甜菜波波 阅读(3788) 评论(0) 推荐(0)
摘要: json字符串转json对象:jQuery.parseJSON(jsonStr);json对象转json字符串:JSON.stringify(jsonObj);IE中可能对unicode使用“\uXXXX”格式来编码,可以使用如下来解码:function unicode2Char(str) {ret... 阅读全文
posted @ 2015-12-08 10:44 甜菜波波 阅读(1278) 评论(0) 推荐(0)
摘要: 1.引用“Newtonsoft.Json” 4.0 版本2.基础类using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace NewTonJsonTest{ public ... 阅读全文
posted @ 2015-12-08 10:23 甜菜波波 阅读(2555) 评论(0) 推荐(0)
摘要: /****** Script for SelectTopNRows command from SSMS ******/declare @oid int declare @cid int declare @tb table(oid int not null primary key,cid int ... 阅读全文
posted @ 2015-11-20 13:46 甜菜波波 阅读(424) 评论(0) 推荐(0)
摘要: 有三种用法1.insert values2.insert select3.inser exec 阅读全文
posted @ 2015-11-20 13:45 甜菜波波 阅读(228) 评论(0) 推荐(0)
摘要: sql server 查询某个表的所有触发器名称查出所有用到某个表的SQLselect * from sysobjects where xtype='TR' select * from sysobjects where xtype='TR' and parent_obj=object_id('表名'... 阅读全文
posted @ 2015-11-19 12:00 甜菜波波 阅读(6811) 评论(0) 推荐(0)
上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 114 下一页