Skip to content

Comments

Create Entities in-memory from Autoentities#3129

Open
RubenCerna2079 wants to merge 22 commits intomainfrom
dev/rubencerna/create-inmemory-entities-from-autoentities
Open

Create Entities in-memory from Autoentities#3129
RubenCerna2079 wants to merge 22 commits intomainfrom
dev/rubencerna/create-inmemory-entities-from-autoentities

Conversation

@RubenCerna2079
Copy link
Contributor

@RubenCerna2079 RubenCerna2079 commented Feb 13, 2026

Why make this change?

  • Create entities in-memory from autoentities #3052
    We need to generate all the entities from the autoentities properties. In order to do this we need to use the query that was previously created and, add the newly generated entities into the runtime so the user can use them.

What is this change?

  • MsSqlMetadataProvider.cs: Finish creating the GenerateAutoentitiesIntoEntities function so that it uses the query to receive all of the tables and turn them into entities inside the runtimeConfig.
  • RuntimeConfig.cs: Create new function that adds the new entities to the runtimeConfig. And also change the runtimeConfig to allow for the entities property to be missing if the user decides to use the autoentities property.

How was this tested?

  • Integration Tests
  • Unit Tests

@RubenCerna2079 RubenCerna2079 added this to the Feb 2026 milestone Feb 13, 2026
@RubenCerna2079 RubenCerna2079 self-assigned this Feb 13, 2026
@RubenCerna2079 RubenCerna2079 linked an issue Feb 13, 2026 that may be closed by this pull request
@RubenCerna2079 RubenCerna2079 force-pushed the dev/rubencerna/create-inmemory-entities-from-autoentities branch from 1972a8f to 2f256e4 Compare February 13, 2026 00:52
@RubenCerna2079 RubenCerna2079 marked this pull request as ready for review February 13, 2026 01:13
Copilot AI review requested due to automatic review settings February 13, 2026 01:13
@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).


_entityNameToDataSourceName = new Dictionary<string, string>();
if (Entities is null)
if (Entities is null && this.Entities.Entities.Count == 0 &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition will throw NullException

{
foreach (KeyValuePair<string, Entity> entity in Entities)
{
_entityNameToDataSourceName.TryAdd(entity.Key, this.DefaultDataSourceName);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we always adding to the default data source name here? Shouldnt we add it to the data source name found from the Datasource files? If there is no name found there, we should use default data source name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Create entities in-memory from autoentities

3 participants