摘要:
--构造测试数据: 只作演示用CREATE TABLE [dbo].[Tim_LinqTable]([Id] int PRIMARY KEY IDENTITY(1,1) NOT NULL,[Name] [varchar](50) NOT NULL,[Parent] int NOT NULL,)GOINSERT INTO [Tim_LinqTable] SELECT 'A',0 UNION ALLSELECT 'A1',1 UNION ALLSELECT 'A2',1 UNION ALLSELECT 'B1',2 UNION ALL 阅读全文
摘要:
System.ArgumentNullException : A type specific Set(position, val) should be called because the Type can not be guessed from a null value.出现此异常时需要为参数值为null时指定类型。query.SetParameter(position, null, NHibernateUtil.Int32); 阅读全文