コード例 #1
0
ファイル: MKeyTest.cs プロジェクト: 991899783/DbEntry
        public void TestMkeyForUpdate()
        {
            var p = new Mkey2 { FirstName = "test", LastName = "next", Age = 11 };
            DbEntry.Update(p);
            AssertSql(@"UPDATE [Mkey2] SET [Age]=@Age_0  WHERE ([FirstName] = @FirstName_1) AND ([LastName] = @LastName_2);
<Text><30>(@Age_0=11:Int32,@FirstName_1=test:String,@LastName_2=next:String)");
        }
コード例 #2
0
        public void TestMkeyForUpdate()
        {
            var p = new Mkey2 {
                FirstName = "test", LastName = "next", Age = 11
            };

            DbEntry.Update(p);
            AssertSql(@"UPDATE [Mkey2] SET [Age]=@Age_0  WHERE ([FirstName] = @FirstName_1) AND ([LastName] = @LastName_2);
<Text><30>(@Age_0=11:Int32,@FirstName_1=test:String,@LastName_2=next:String)");
        }