change-tracking Questions
3
I am struggling to understand something with change tracking in EF6.
I have code similar to this.
public class SomeClass
{
private List<User> _users;
private DAL _dal;
public void Proce...
Evadnee asked 11/1, 2017 at 11:42
1
Solved
I have a very basic setup to test and understand why EF Core 6 doesn't save related entities by default when adding new item to the many end of an already saved entity.
Can someone explain to me w...
Diaphoresis asked 9/8, 2022 at 20:24
8
Solved
Originally I believed that
context.Configuration.AutoDetectChangesEnabled = false;
would disable change tracking. But no. Currently I need to use AsNoTracking() on all my LINQ queries (for my r...
Hairpin asked 4/10, 2012 at 12:4
6
I need a function (using base SAS or RStudio) that will enable me to determine the ID numbers as of a certain date and the original (root) ID numbers as of the start date. The dataset includes the ...
Quiberon asked 8/6, 2021 at 22:29
4
Solved
I made a test with code below to update the Product:
var existing = await _productRepository.FirstOrDefaultAsync(c => c.Id == input.Id);
if (existing == null)
throw new UserFriendlyException(L...
Viens asked 12/4, 2018 at 13:58
2
Solved
What advantages do Temporal Tables have over Change Data Capture or Change Tracking in SQL Server?
Gastric asked 26/8, 2016 at 11:37
2
Solved
I have an index in azure search which is synced to an SQL server table through Change Tracking.
I randomly start getting this error after I make some changes to the table (but not always, and I ca...
Group asked 3/4, 2016 at 21:51
4
Solved
I am looking to design a database that keeps track of every set of changes so that I can refer back to them in the future. So for example:
Database A
+==========+========+==========+
| ID | Name...
Selfforgetful asked 12/6, 2013 at 21:21
2
I have an Entity Framework 6 Code First model generated from an existing SQL Server database. The database is using SQL Server Change Tracking, so for all the data manipulation operations generatin...
Insect asked 30/11, 2016 at 17:20
1
Solved
I have change tracking enabled on a SQL Server database. I originally configured the database to use auto cleanup with a retention period of 3 days. Now that everything is running I would like to u...
Testate asked 26/4, 2016 at 19:55
2
What is the best way to know when an Elastic Search index needs updating, assuming the upstream data source is transactional SQL Server tables with inserts, updates and deletes?
Examples:
Tables P...
Cricoid asked 1/12, 2015 at 22:29
3
Solved
Assuming change tracking is enabled on a SQL Server database, how do I enable change tracking on all the tables in the database?
Hogen asked 25/2, 2015 at 20:57
1
Solved
If I load up an entity, make some changes, and then go to save it, EF generates an update statement.
This must mean that at some point something (presumably the change tracker) is navigating the l...
Commemoration asked 13/5, 2015 at 23:51
1
I have a context to a read-only database for reporting and I am writing lots of code, like this:
using (var context = new ReportingContext())
{
var reportXQuery = context.ReportX.AsNoTracki...
Emmott asked 20/9, 2013 at 20:15
2
Solved
I have entities which form a tree relationships.
class MyEntity
{
public int Id {get;set;}
public int ParentId {get;set;}
public virtual MyEntity Parent {get;set;}
public virtual ICollection...
Charil asked 15/8, 2013 at 14:42
2
Solved
Most of the examples I've seen online shows object change tracking in a WinForms/WPF context. Or if it's on the web, connected objects are used, therefore, the changes made to each object can be tr...
Albeit asked 22/7, 2013 at 2:57
1
Solved
I'm having trouble with one of my queries because of EF's change tracking and lazy loading features. The thing is that after I'm getting the result of the query, I'm using AutoMapper to map the dom...
Macdermot asked 4/10, 2012 at 16:57
7
Solved
We have a web application that is built on top of a SQL database. Several different types of objects can have comments added to them, and some of these objects need field-level tracking, similar to...
Lobar asked 25/1, 2010 at 19:45
4
Solved
I know of at least two byte-code enhancer that modify the "object model" at runtime to allow transaction to be performed transparently. One of them is part of Versant VOD, which I use at work every...
Hare asked 6/4, 2012 at 13:54
1
Solved
Given the following code, how does EF/DbContext knows about the change made to the customer object:
class Program
{
static void Main()
{
using(var shopContext = new ShopContext())
{
var custo...
Sarabia asked 30/4, 2012 at 1:48
2
Solved
How can I detect changes of ICollection<> properties (many-to-many relationships)?
public class Company
{
...
public virtual ICollection<Employee> Employees { get; set; }
}
using (Dat...
Coexecutor asked 20/9, 2011 at 19:15
1
Solved
I have been using a lot Entity Framework in a MVVM WPF application recently and I ran into some issues. To display data, my view-models are using a short-live ObjectContext. These view-models will ...
Foliage asked 31/1, 2012 at 8:59
2
I am in the process of upgrading an application from EF1 to EF4.1
I created a DbContext and a set of POCOs using the "ADO.NET DbContext Generator" templates.
When I query the generated DbContext t...
Svelte asked 12/5, 2011 at 7:0
2
Solved
I have a base class that I inherit from that has two zero to many relationships with other entities:
public abstract class WebObject
{
public WebObject()
{
RelatedTags = new List<Tag>();
...
Week asked 16/8, 2011 at 13:52
1
Solved
I'm using Entity Framework 4.1 Code First. Is there a built-in way to get a list of what properties have changed since the entity was loaded from the database? I know code first detects that an obj...
Institutional asked 18/8, 2011 at 21:23
1 Next >
© 2022 - 2025 — McMap. All rights reserved.