Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer''Microsoft.EntityFrameworkCore.Query.Internal.AnonymousObject'"Could not parse the configuration file..." when adding or updating to a model in EF 6"Multiplicity constraint violated" when there is an entity"Overriding" get and set operations for entity properties"The specified store provider cannot be found in the configuration, or is not valid " in entity frameworkA referential integrity constraint violation occurredadd-migration command is giving error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0Added Table Not ShowingAdding a relationship with an entity which is in the Deleted state is not allowed.ADO.net Entity Data Model template is missing in vs 2019 community, need helpADO.NET entity framework from MS-ACCESS databaseADO.NET Entity Framwork "The specified metadata path is not valid"Allow Zero Datetime - MySqlAn error occurred while executing the command definition, w/ inner exception SqlExceptionAn error occurred while preparing the command definition. See the inner exception for details.An unhandled exception of type 'System.Data.Entity.Core.EntityCommandExecutionException' occurred in mscorlib.dllAny() method throws an exception when we connect to MySql but it is working fine when we connect to SqlServerAttach an entity to the DbContext that was retrieved by AsNoTrackingAvoiding deadlock for transaction scopeBindingsource sort doesn't workBug in EF 4.1 DatabaseGeneratedOption.Computed?BuildFailedException was unhandledc# Datetime2 breaking sql insert "The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value"C# Environment.NewLine and SqL ServerC# LINQ: How to select multiple field and return listC#: what is the usage of virtual keyword in Entity FrameworkCalling 'Read' when the data reader is closedCan Entity Framework work with Linked ServerCan i create multiple tables using same model in EF core asp.netCan I do an INSERT with a SELECT equivalent in Entity Framework 4Can't create a complex type for my stored procedure resultsCannot add view to Entity Data ModelCannot implicitly convert type 'System.Data.Entity.Core.Objects.ObjectResult<string>' to 'System.Data.Objects.ObjectResult<string>'Change the database after creating the .edmx fileChild table not updated during Parent update using EFClear a local collection without disposing the contextCode First - How to make DateTime columns nullableCompiledQuery exception - This method supports LINQ to Entity infrastructure and is not intended to be used directly from your codecontext.SaveChanges() not persisting data in databaseConvert DateTime to string and Compare that with search text using Entity Framework 6Convert ObjectResult<Type> to List<Type>Convert String to Int in Where/OrderBy - Is it possible?Copy data from one database to otherCould not determine storage version; a valid storage connection or a version hint is required.Count(distinct column) in LINQCreating a copy of an entity objectData Annotation to set Default Value for an enum propertyDatabase First - DbModelBuilder or writing the EDMX from a DbContext not supportedDBContext - Get entities based on a listDbContext.Savechanges() throwing error in entity frameworkcore1.0 with triggerDbUpdateConcurrencyException error when saving record in EF Core 1.1Decimal output parameter rounded to integerDelegate does not take '1' argumentsDelete before Insert during SaveChanges ?Deleting a stored procedure from an EF 6.1 Database First C# solutionDeleting and adding an entity set before saveDifference between a join and includeDo I need to explicitly call Dispose() on DataContext object?Dynamic LINQ join extehsionEF - Create TABLE if not existsEF 4.1 DbContext CommandTimeout?EF 4.3 migration error on Enable-MigrationsEF 5.0 design Update issue : The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100EF 6 - saveChanges() is saving unchanged recordsEF Bad Performance with DBContext and SaveChangesEF Code First - Add-Migration fails with Could not load file or assembly error.EF Code First - Composite Key - A LINQ says Oracle Exception ('ORA-00932')EF Core insert explicit value for identity column, ValueGeneratedOnAdd or UseSqlServerIdentityColumn not worksEF Core Introducing FOREIGN KEY constraint may cause cycles or multiple cascade pathsEF Designer ProblemEF dll does not find connection stringEF Dynamic column name in where clauseEF Inserts/Updates: Ridiculously SlowEF Model update from SQL Server CE databaseEF raising exception: An error occurred while starting a transaction on the provider connection.EF, SaveChanges: How to release memory after adding object to entity?EF4 Mapping of CLR type to EDM type is ambiguous error.EF6 Code First - Wont create database due to pending changesEF6 DbUpdateConcurrencyException when adding itemEntity designer not generating code (designer.cs) fileEntity frame work BulkInsert Vs AddRangeEntity Framework - Convert DateTime between KindsEntity framework - Error when filtering a IQueryable by "Contains in list" or list is nullEntity Framework - Invalid column name errorEntity Framework - System.StackOverflowExceptionEntity Framework , Exception thrown : "Transaction (Process ID 57) was deadlocked ... "Entity Framework 'Update Model From Database' not displaying new tablesEntity framework + Unit of Work + updating child entitiesEntity Framework 6: Dynamically build search clause against DBEntity Framework and dynamic order by statementsEntity Framework and SQL XML data typeEntity framework attempts to update GENERATED ALWAYS columnsEntity Framework Code First approach is causing issue to enable migrationsEntity Framework Core generates incorrect SQL code which results to Cannot insert explicit value for identity column in table 'AspNetUsers' when IDENTITY_INSERT is set to OFF.Entity framework doens't show my stored procedure on "Update model from database"Entity Framework does not close connectionEntity Framework doesn't save new record into databaseEntity Framework error during update: field is requiredEntity Framework Error:an entry with the same key already exists.Entity Framework how to save a List of type int to databaseEntity Framework Insert or update data if existEntity FrameWork Linq left join with sub queryEntity Framework Not include child ObjectEntity Framework Power Tools menu not visibleEntity Framework Related ErrorEntity Framework Repository and GetAllEntity Framework returning old dataEntity Framework SaveChanges not saving updated dataEntity Framework Treats XML type in SQL Server as a string.Entity framework updating composite primary keyEntity Framework with Oracle AND SQLEntity framework with update triggerEntity Framework: Opening and Closing Connections to SQL ServerEntity Framework: How to enable paging support for repository patternEntity Framework: How to perform left join with EF and LINQ among multiple tablesEntity Framework: Unable to resolve error: Object reference not set to an instance of an object.Entity Framework: Why virtual keyword used to declare properties in DbContextEntityConnection error: The specified named connection is either not found in the configuration...EntityFramework 5, CodeFirst Error: Keyword not supported: 'data source'.EntityFramework expose foreign key error when saving association from within MVC Action MethodEntityFramework problem with SQL TRIGGEREntityFrameworkCore - Update vs AddEntityModelCodeGeneratorError "A transport-level error has occurred when receiving results from the server. (provider: Session Provider, error: 19 - Physical connection is not usable)error 0019: The EntityContainer name must be unique. An EntityContainer with the name 'AAA' is already defined.error 0040: The Type Decimal is not qualified with a namespace or aliasError 175: The ADO.NET provider with invariant Name 'System.Data.SqlClient' is either not registered in the machine or application, config file, or could not be loadedError 2010: The column specified as part of this MSL does not exist in MetadataWorkspace.Error 3024: Problem in Mapping Fragment starting at line 372: Must specify mapping for all key properties (OrderedTestCaerror code 3004Error comes as a {“Invalid object name 'dbo.TableName'.”}error MSB4006: There is a circular dependency in the target dependency graph involving target GetEFProjectMetadataError to deserialize The InnerException message was 'ValueType 'System.Int32' cannot be nullError: "A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)"Error: dotnet.exe : System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Company' in the database.Error: Unable to determine composite primary key ordering for typeException Handling with Entity Framework context.SaveChanges()Exception: A dependent property in a ReferentialConstraint is mapped to a store-generated column.EXISTS keyword equivalent in EF using query builderFind out if "ObjectContext instance has been disposed"Force entity framework to load new data from database without disposing the contextGenerate an XSD file from EDMX fileGet Generated IDs using Unit Of work and Repository Pattern.Get Primary Key Properties of a EntityGetting "The entity type Company is not part of the model for the current context." error trying to do Code First in EFGetting a "no connection string ... could be found in the application config file" error, but don't understand whyGetting a "The process was terminated due to an unhandled exception" error, but only from the appGetting correct order of execution of insert, update and delete operations before "SaveChanges"Getting Insert Duplicate Key Error But Only Updating and DeletingGetting the error System.InvalidCastException: Unable to cast object of type 'System.Data.ProviderBase.DbConnectionClosedConnecting' to type 'System.Data.SqlClient.SqlInternalConnectionTds'. in EF CoreGetting the IDENTITY value before SaveChanges()Getting the Sum of columns in Entity Frameworkgroup and sum from multiple tablesGroup By Date (but ignoring the time portion)Group by Sum in Entity FrameworkHow can I convert an entity object to another one with same properties from a different modelhow can i kill all connections of users to my sql server database ?How can I solve table already exists error while Migrate in EntityFramework Core?How do I detect when entity deleted (or marked for deletion)How do I make a connection with "master"?How do I select only some columns into an entity?How do I simply group a DateTime by DAY????How do I use Automapper to MAP Navigation PropertiesHow do I use this generic Get function with a predicate?How EF cache dataHow Entity Framework can return data table instead of Listhow to add new stored procedure to existing .edmx fileHow to bind a WPF combobox with entity frameworkHow to call Dynamic Tables using Entity Framework?How to Cast a Numeric field to String during Linq to EntitiesHow to change EDMX ConnectionString from Dev. to ProdHow to change the db connection dynamically in Entity Framework coreHow to clear all data on a table and reset identity column ?How to clear the internal context cache after doing direct SQL?How to convert a datatable column from string to int ?How to delete Tables from edmx file?How to do a recursive query in EF ?How to dynamically select different column via Linq to EFHow to exclude 2 tables out of 120 tables in EF Core DB First approachHow to fetch master detail data using EF and LINQhow to filter Query by date in Dynamic LINQHow to get all table names of db using EFHow to get column names of db table in using EFHow to get list of tables and list of columns in those tables in EFHow to get object using Max LINQ query?How to get Primary Key info from DbContext ?How to group data by year, month and date?How to handle connection failure with EF?How to identify the field on {"String or binary data would be truncated.\r\nThe statement has been terminated."} errorHow to ignore a particular field from an Entity model upon insert?How to ignore saving an entity set ?How to implement Lock in "Entity Framework"How to insert a row using Entity Framework?How to insert data into multiple tables at a time using Entity FrameworkHow to insert Empty StringHow To Insert List of Record To the Database Using LinqHow to map a tinyint column to booleanhow to map many to many relationship with additional fields ?How to order by column with null values last in entity frameworkHow to pass ids of multiple Checkboxes selected in an Index View to the Controller?How to perform Update and Delete operations with DTOHow to prevent EF from creating an index on a foreign keyHow to programmatically create DbContext Connection string and specify providerName in it?how to remove limit from contain clause?How to remove some properties generated by EF 5.0How to reuse parts of a linq queryHow to sort parent by child's propertyHow to update both child and parent table in single transaction using entity framework?How to use a conditional Include with Linq to Entities queries ?How to use multiple connection string in entity framework 6.0How would I obtain unsaved entities that have been added to a context?HOWTO LINQ/join multiple DataTables with multiple columns.Include() is ignored in a subqueryIncluding EF6.Utility.CS.ttinclude in T4 TemplateInserting Data in Two Tables in Entity Framework 6.0Int.Parse is not supported by LINQ to EntitiesInvalid Column NameInvalid Column Name 'CoilItm_Id1' Error. EF6Invalid object name 'dbo.EdmMetadata' and 'dbo.__MigrationHistory'InvalidOperationException: When called from 'VisitLambda', rewriting node of type 'ParameterExpression' must return a non-null value of the same typeIs it possible Entity framework will support table without primary key?Is There a .RemoveAll equivalent in Entity Framework ?Is there a way to use ODBC with EF?Is there have a way to dynamically add Dbset when using EF CORE 2.2?Issue with OrderBy for Strings with IntegersJoin multiple where clauses in LINQ as OR instead of ANDjoin on two tables from different DbContext and schemaJoin Select all "columns" from a "table"Joining Two Entity Sets from Different ContextsKeyword not supported : 'host' error when migration ef on POSTGRESQLLINQ orderby in includeLinq Query WildCard?LINQ query with where condition on parent and child entity.LINQ to Entites 'parameterless constructor' errorLinq to Entities - Group By and Concat String ColumnLinq to Entities - StackOverflow when looking for large amount of itemsLINQ to Entities does not recognize the method 'System.String ToShortDateString()' method, and this method cannot be translated into a store expressionLinq to Entities select count based on joinLINQ to Entities with string comparison?LINQ to Entities: "New transaction is not allowed because there are other threads running in the session."Linq Where based on Guid returns no resultList to EntityCollectionLoss of Persision between C# DateTime and SQL DateTimeMapping a field to an enum propertyMarking an entity as Read-OnlyMicrosoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'System.Data.Objects.ObjectQuery<byte[]>' to 'byte[]'Missing DbModel.Context.cs file under DbModel.Context.ttModel diagram is not shownMonitoring network traffic for SQL serverMultiple Connection Strings on same DbContext in .Net CoreMultiple DB Context and join across contextMultiple EDMX in one ProjectMultiplicity constraint violated, The role X of the relationship Y has multiplicity 1 or 0..1.Multiplicity is not valid in RoleMultithreading and the Entity FrameworkNeed help with the "model backing the context has changed since the database was created" errorNo context type was found in the assemblyNo suitable constructor found for entity type '<Entity>'.NOT IN clause for EntitiesNotSupportedException: Unable to create a constant value of type... Only primitive types or enumeration types are supported in this context.Nullable decimal problemObjectContext.SaveChanges return values?Only primitive types or enumeration types are supported in this context - entity frameworkOnModelCreating - no suitable method found to overrideOrder of insertsOrderBy DESC with NULL values firstOutofMemory Exception in Entity FrameworkPerformance : EF Query vs Direct sql queryPessimistic concurrency in LINQ to Entity?Pivot table in c# entity frameworkPossible to write a Linq query that returns a boolean result?PredicateBuilder fails on nested predicates with LINQ to EntitiesProblem in mapping among two derived entities that have 3 fields key and 2 other entities in relationship one to many using Entity Framework version. net 3.5 or 4Problem in querying records with null values column(s)ProviderManifestToken=2012 in edmx causes metadata load errorsQuerying GUID Fields via LINQ Statements off EF ModelsRecursive .Include() for hierarchies...Refreshing .edmx Model did not update model classesRemove() From Collection Does Not Mark Object As DeletedRemove() with many-to-many relationship doesn't work in Entity Framework 4.1Removing generated classesReoccurring error when trying to Generate Database from Model using Entity Framework DesignerReturning DataSet Or DataTable From Stored Procedure using Entity Framework 4.0Rounding C# Decimal values to SQL Decimal (or Numeric) fieldsSaveChanges very slowSaveChanges() when there is nothing to saveSchema specified is not validschema specified is not valid. Errors: The mapping of CLR type to EDM type is ambiguousSequence contains more than one matching element - one-to-mant with composite keySet Entity State to Modified for entities with different referencesometime child object is missing while loading the data from database using lazy loading entity frameworkSometimes get SQL Timeout expired exception with Linq to EF and after a restart of server, it works fine.Sqldatareader in Enitity FrameworkSystem InvalidOperationException : The trasacation associated with current connection has completed but not disposedSystem.ArgumentException: 'Keyword not supported: 'sslmode'.' ErrorSystem.ArgumentException: Keyword not supported: 'data source'.System.ComponentModel.Win32Exception: The network path was not foundSystem.Data.EntityException HResult=0x80131501 ErrorSystem.InvalidOperationException: Variable '' of type '' referenced from scope '', but it is not definedThe 'xxx' property on 'yyy' could not be set to a 'Int32' value. You must set this property to a non-null value of type 'String'.The argument types 'Edm.Guid' and 'Edm.String' are incompatible for this operation exceptionThe data reader has more than one field. Multiple fields are not valid for EDM primitive or enumeration typesThe data reader is incompatible with the specified '------'. A member of the type, '----', does not have a corresponding column in the data reader with the same name.The data reader returned by the store data provider does not have enough columns for the query requested.The incoming tabular data stream(TDS) remote procedure call (RPC) protocol stream is incorrect.Too many parameters provided in the RPC request.The maximum is 2100.The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'district'The member with identity '' does not exist in the metadata collection.The Model was generated with Warnings or ErrorThe nested query is not supported. Operation1='Case' Operation2='Collect'The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set to a null value. If the foreign-key does not suThe relationship between the two objects cannot be defined because they are attached to different ObjectContext objectsThe selected stored procedure or function returns no columnsThe term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.The transaction active in this session has been committed or aborted by another session.The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity'The type or namespace name 'MyDBEntities' could not be found (are you missing a using directive or an assembly reference?)The underlying provider failed on EnlistTransaction.The xxx property on 'yyy' could not be set to a 'null' value. You must set this property to a non-null value of type 'DateTime'. Errorthey are not in the same type hierarchy or do not have a valid one to one foreign key relationship with matching primary keys between them.Type has already been configured as an entity type. It cannot be reconfigured as a complex type.Unable to cast object type 'System.Data.Entity.Infrastructure.DbQuery'1... errorUnable to cast string type to number type in Linq expressionUnable to determine the principal end of the relationship. Multiple added entities may have the same primary key.Unable to execute Update-Database -Script -Source $InitialDatabase in package manager consoleUnable to generate function Import for a simple functionUnable to update the EntitySet ... because it has a DefiningQuery and no <DeleteFunction> element exists in theUnexpected "Invalid column name" ExceptionUnion : "No coercion operator is defined between types ..."Update a field value in datatable using linqUpdate Existing Entity By assinging to object not the value to object in Entity FrameworkUpdate Model From Database deleted all of my Models under the .tt FileUpdate Model from Database not workingUpdate Model From Database ProblemUpdate only partial properties of an entityupdate-database not updating new columns of a created tableUsing OrderBy with DbContext SetValidate EDMX file from XML EditorVisual Studio 2019 & Data Connection & Entity Framework Wizard (Oracle)What is difference between ToList() & AsQueryable()What is SET FMTONLY OFF; And why it helped me to return set from stored procedure?What is the .datasource file in the DataSources folder?What is the advantage and disadvantage of Entity FrameworkWhat is the advantage of AsQueryable() when fetching dataWhat is the usage of HasMany and WithManyWhat's EntityFramework.dll ?What's the difference between datasets and the entity framework?When do we use IQueryable? or IEnumerable? or ToList()?When to use AsEnumerable() along with EF to fetch dataWHERE IN clause?Why db.SaveChanges() does not work?Why does Remove() not delete entities from database?Why doesn't cascade on delete work?Why LINQ to Entities does not recognize the method 'System.String PadLeft(Int32, Char)' ?Why my DbContext.Select() returns null when populating a different object?Why the word Extent1 is used in sql generated by EFWildcard search using entity framework.XSD to edmx or Database?