KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I use entityframework 5.0. I have so many test. If I run a test alone it passes, if I run this with the others eachother in the same time, it does not pass. There is no contact between the tests. Everytime one same query was sent. It would not be modified. **query:** insert [dbo].[Patient] ([AddressId], [FirstName], [LastName], [MiddleName], [MuthersName], [Sex], [BirthDate], [TAJNumber], [Height], [Weight], [PhoneMobil], [PhoneHome], [Email], [OtherDisease]) values (13 /* @0 */, 'Peter' /* @1 */, 'Peter' /* @2 */, 'Peter' /* @3 */, 'Maria' /* @4 */, 1 /* @5 */, '1991-07-04T00:00:00' /* @6 */, '5464845' /* @7 */, 170 /* @8 */, 66 /* @9 */, '00456249864' /* @10 */, '00456249864' /* @11 */, 'alma22@mailmetrash.com' /* @12 */, null) select [Id] from [dbo].[Patient] where @@ROWCOUNT > 0 and [Id] = scope_identity() **WARN:** System.Data.SqlClient.SqlException (0x80131904): The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 9 ("@6"): The supplied value is not a valid instance of data type datetime2. Check the source data for invalid values. An example of an invalid value is data of numeric type with scale greater than precision. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResult
Tags (comma-separated)
Save Edits
Cancel