You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EntityFrameworkCore.Jet/test/System.Data.Jet.Test/Resources/UpdateTestQueries.txt

33 lines
837 B
Plaintext

ExecuteNonQuery==========
CREATE TABLE [Students] (
[StudentId] int NOT NULL IDENTITY,
[Notes] text NULL,
[StudentName] varchar(50) NOT NULL,
CONSTRAINT [PK_Students] PRIMARY KEY ([StudentId])
);
ExecuteDbDataReader==========
INSERT INTO [Students] ([Notes], [StudentName])
VALUES (null, 'Student to update');
SELECT [StudentId]
FROM [Students]
WHERE 1 = 1 AND [StudentId] = @@identity;
ExecuteDbDataReader==========
SELECT TOP 1 [s].[StudentId], [s].[Notes], [s].[StudentName]
FROM [Students] AS [s]
WHERE [s].[StudentId] = @@identity
ExecuteDbDataReader==========
UPDATE [Students] SET [StudentName] = 'Student updated'
WHERE [StudentId] = @@identity;
ExecuteDbDataReader==========
SELECT COUNT(*)
FROM [Students] AS [s]
WHERE [s].[StudentName] = 'Student updated'
ExecuteNonQuery==========
DROP TABLE [Students]