How to query System generated columns on Developer Edition

Zhang, Li 0 Reputation points
2024-12-23T22:26:13.1633333+00:00

We are using EF 8.0 to manage data, one of the recent challenges is that the query on SQL Server Developer Edition and Enterpise Edition returns different results.

i.e., two columns StartTime/EndTime are generated like

entity.Property(e => e.StartTime).ValueGeneratedOnAddOrUpdate();	
			

However, a rawSql (Select *) won't return those two columns on Developer Edition. My question: how to write the right query disregarding the different editions? Thanks.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
767 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,211 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.