Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Harden Preview 3 release topology and deterministic material catalog
Yuechen Lib7484e75179c
diff --git a/Aetheris.CLI/Aetheris.CLI.csproj b/Aetheris.CLI/Aetheris.CLI.csprojindex 7e5aece3..b9fcaec0 100644--- a/Aetheris.CLI/Aetheris.CLI.csproj+++ b/Aetheris.CLI/Aetheris.CLI.csproj@@ -16,7 +16,7 @@<ProjectUrl>https://yuechen-li-dev.github.io/aetheris/</ProjectUrl><PackageLicenseExpression>AGPL-3.0-only</PackageLicenseExpression><PackageReadmeFile>Aetheris.CLI.README.md</PackageReadmeFile>- <PackageReleaseNotes>Preview 2: Firmament V2, Forge Host, assemblies, engineering modules, Continuum/FEA, drawings, and release hardening.</PackageReleaseNotes>+ <PackageReleaseNotes>Preview 3: release-topology hardening for Firmament V2, Forge Host, engineering modules, analysis, and drawings.</PackageReleaseNotes><AllowedOutputExtensionsInPackageBuildOutputFolder>.dll;.exe;.json</AllowedOutputExtensionsInPackageBuildOutputFolder></PropertyGroup>diff --git a/Aetheris.Kernel.StandardLibrary.Tests/MaterialCatalogTests.cs b/Aetheris.Kernel.StandardLibrary.Tests/MaterialCatalogTests.csindex 0a21c5e8..5c5b473b 100644--- a/Aetheris.Kernel.StandardLibrary.Tests/MaterialCatalogTests.cs+++ b/Aetheris.Kernel.StandardLibrary.Tests/MaterialCatalogTests.cs@@ -26,14 +26,21 @@ public sealed class MaterialCatalogTestspublic void ReproducibleGeneration_CreatesLoadableEfCoreSqliteCatalog(){var path = Path.Combine(Path.GetTempPath(), $"aetheris-materials-{Guid.NewGuid():N}.sqlite");+ var secondPath = Path.Combine(Path.GetTempPath(), $"aetheris-materials-{Guid.NewGuid():N}.sqlite");try{MaterialCatalogDatabase.Recreate(path);+ MaterialCatalogDatabase.Recreate(secondPath);+ Assert.Equal(File.ReadAllBytes(path), File.ReadAllBytes(secondPath));using var catalog = new MaterialCatalog(path);Assert.Equal(MaterialCatalog.ExpectedSeedMaterialCount, catalog.Materials.Count());Assert.NotNull(catalog.GetById("standard", "aluminum/5052-h32"));}- finally { if (File.Exists(path)) File.Delete(path); }+ finally+ {+ if (File.Exists(path)) File.Delete(path);+ if (File.Exists(secondPath)) File.Delete(secondPath);+ }}[Fact]diff --git a/Aetheris.Kernel.StandardLibrary/Aetheris.Kernel.StandardLibrary.csproj b/Aetheris.Kernel.StandardLibrary/Aetheris.Kernel.StandardLibrary.csprojindex a2484485..40d2cd34 100644--- a/Aetheris.Kernel.StandardLibrary/Aetheris.Kernel.StandardLibrary.csproj+++ b/Aetheris.Kernel.StandardLibrary/Aetheris.Kernel.StandardLibrary.csproj@@ -3,6 +3,7 @@<TargetFramework>net10.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable>+ <InterceptorsNamespaces>$(InterceptorsNamespaces);Microsoft.EntityFrameworkCore.GeneratedInterceptors</InterceptorsNamespaces></PropertyGroup><ItemGroup>@@ -12,6 +13,16 @@</ItemGroup><ItemGroup>- <Content Include="Materials\Database\aetheris-materials-x1.sqlite" Condition="Exists('Materials\Database\aetheris-materials-x1.sqlite')" CopyToOutputDirectory="PreserveNewest" Link="Materials\aetheris-materials-x1.sqlite" />+ <Content Include="Materials\Database\aetheris-materials-x1.sqlite"+ Condition="Exists('Materials\Database\aetheris-materials-x1.sqlite')"+ CopyToOutputDirectory="PreserveNewest"+ CopyToPublishDirectory="PreserveNewest"+ Pack="true"+ PackagePath="contentFiles/any/any/Materials/aetheris-materials-x1.sqlite"+ PackageCopyToOutput="true"+ Link="Materials\aetheris-materials-x1.sqlite" />+ <None Include="build\Aetheris.Kernel.StandardLibrary.targets"+ Pack="true"+ PackagePath="buildTransitive\Aetheris.Kernel.StandardLibrary.targets" /></ItemGroup></Project>diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalog.EFInterceptors.MaterialCatalogDbContext.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalog.EFInterceptors.MaterialCatalogDbContext.csnew file mode 100644index 00000000..9d87d969--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalog.EFInterceptors.MaterialCatalogDbContext.cs@@ -0,0 +1,361 @@+// <auto-generated />++using Aetheris.Kernel.StandardLibrary.Materials;+using Aetheris.Kernel.StandardLibrary.Materials.Database;+using System;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;+using Microsoft.EntityFrameworkCore.Diagnostics;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Infrastructure.Internal;+using Microsoft.EntityFrameworkCore.Internal;+using Microsoft.EntityFrameworkCore.Metadata;+using Microsoft.EntityFrameworkCore.Query;+using Microsoft.EntityFrameworkCore.Query.Internal;+using Microsoft.EntityFrameworkCore.Storage;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;+using System.Collections.Concurrent;+using System.Collections.Generic;+using System.Data.Common;+using System.Linq;+using System.Linq.Expressions;+using System.Reflection;+using System.Runtime.CompilerServices;+using System.Threading.Tasks;++#pragma warning disable EF9100 // Precompiled query is experimental+#pragma warning disable CS9270 // EF 10 tooling emits the supported legacy location form.++namespace Microsoft.EntityFrameworkCore.GeneratedInterceptors+{+ file static class EntityFrameworkCoreInterceptors+ {+ #region Query1++ [InterceptsLocation(@"/_/Aetheris/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs", 41, 58)]+ public static global::System.Linq.IQueryable<TEntity> Query1_AsNoTracking1<TEntity>(this global::System.Linq.IQueryable<TEntity> source)+ where TEntity : class+ {+ var precompiledQueryContext = new PrecompiledQueryContext<TEntity>(((IInfrastructure<DbContext>)source).Instance);+ return precompiledQueryContext;+ }++ [InterceptsLocation(@"/_/Aetheris/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs", 41, 73)]+ public static TSource Query1_Single2<TSource>(this global::System.Linq.IQueryable<TSource> source, global::System.Linq.Expressions.Expression<global::System.Func<TSource,global::System.Boolean>> predicate)+ {+ var precompiledQueryContext = (PrecompiledQueryContext<TSource>)source;+ var queryContext = precompiledQueryContext.QueryContext;+ Query1_Executor ??= Query1_GenerateExecutor(precompiledQueryContext.DbContext, precompiledQueryContext.QueryContext);+ return ((Func<QueryContext, TSource>)(Query1_Executor))(queryContext);+ }++ private static object Query1_GenerateExecutor(DbContext dbContext, QueryContext queryContext)+ {+ var relationalModel = dbContext.Model.GetRelationalModel();+ var relationalTypeMappingSource = dbContext.GetService<IRelationalTypeMappingSource>();+ var materializerLiftableConstantContext = new RelationalMaterializerLiftableConstantContext(+ dbContext.GetService<ShapedQueryCompilingExpressionVisitorDependencies>(),+ dbContext.GetService<RelationalShapedQueryCompilingExpressionVisitorDependencies>(),+ dbContext.GetService<RelationalCommandBuilderDependencies>());+ var relationalCommandTemplate = ((IRelationalCommandTemplate)(new RelationalCommand(materializerLiftableConstantContext.CommandBuilderDependencies, "SELECT \"c\".\"Id\", \"c\".\"CatalogId\", \"c\".\"SchemaVersion\", \"c\".\"SeedVersion\"\r\nFROM \"CatalogMetadata\" AS \"c\"\r\nWHERE \"c\".\"CatalogId\" = 'standard'\r\nLIMIT 2", "SELECT \"c\".\"Id\", \"c\".\"CatalogId\", \"c\".\"SchemaVersion\", \"c\".\"SeedVersion\"\r\nFROM \"CatalogMetadata\" AS \"c\"\r\nWHERE \"c\".\"CatalogId\" = 'standard'\r\nLIMIT 2", new IRelationalParameter[] { })));+ var emptyValueBuffer = ValueBuffer.Empty;+ var emptySnapshot = Snapshot.Empty;+ var materialCatalogMetadataEntityEntityType = materializerLiftableConstantContext.Dependencies.Model.FindEntityType("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity");+ var materialCatalogMetadataEntityEntityType0 = ((RuntimeEntityType)(materialCatalogMetadataEntityEntityType));+ var materialCatalogMetadataEntityPrimaryKeyProperties = materialCatalogMetadataEntityEntityType.FindPrimaryKey().Properties;+ return MaterialCatalogMetadataEntity (QueryContext queryContext) => SingleQueryingEnumerable.Create(((RelationalQueryContext)(queryContext)), IRelationalCommandTemplate (Dictionary<string, object> parameters) => relationalCommandTemplate, (ReaderColumn[])(null), MaterialCatalogMetadataEntity (QueryContext queryContext, DbDataReader dataReader, ResultContext resultContext, SingleQueryResultCoordinator resultCoordinator) =>+{+ IEntityType entityType1 = default(IEntityType);+ var materializationContext1 = new MaterializationContext(in emptyValueBuffer, queryContext.Context);+ var instance1 = default(MaterialCatalogMetadataEntity);+ if (((object)(dataReader.GetInt32(0))) != null)+ {+ var shadowSnapshot1 = emptySnapshot;+ entityType1 = materialCatalogMetadataEntityEntityType;+ if (entityType1 == materialCatalogMetadataEntityEntityType)+ {+ var instance = UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_Ctor();+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_Id_Set(instance) = dataReader.GetInt32(0);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_CatalogId_Set(instance) = dataReader.GetString(1);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_SchemaVersion_Set(instance) = dataReader.GetInt32(2);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_SeedVersion_Set(instance) = dataReader.GetString(3);+ if (instance is IInjectableService)+ {+ ((IInjectableService)(instance)).Injected(materializationContext1.Context, instance, QueryTrackingBehavior.NoTracking, materialCatalogMetadataEntityEntityType0);+ }++ instance1 = instance;+ }+ else+ {+ instance1 = default(MaterialCatalogMetadataEntity);+ }+ }+ else+ {+ var keyValues1 = new object[]+ {+ ((object)(dataReader.GetInt32(0)))+ };+ ShapedQueryCompilingExpressionVisitor.CreateNullKeyValueInNoTrackingQuery(materialCatalogMetadataEntityEntityType, materialCatalogMetadataEntityPrimaryKeyProperties, keyValues1);+ }++ var entity = instance1;+ return entity;+}, typeof(MaterialCatalogDbContext), false, false, true).Single();+ }++ private static object Query1_Executor;++ #endregion Query1+ #region Query2++ [InterceptsLocation(@"/_/Aetheris/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs", 65, 62)]+ public static global::System.Linq.IQueryable<TEntity> Query2_AsNoTracking1<TEntity>(this global::System.Linq.IQueryable<TEntity> source)+ where TEntity : class+ {+ var precompiledQueryContext = new PrecompiledQueryContext<TEntity>(((IInfrastructure<DbContext>)source).Instance);+ return precompiledQueryContext;+ }++ [InterceptsLocation(@"/_/Aetheris/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs", 66, 10)]+ public static global::Microsoft.EntityFrameworkCore.Query.IIncludableQueryable<TEntity,TProperty> Query2_Include2<TEntity, TProperty>(this global::System.Linq.IQueryable<TEntity> source, global::System.Linq.Expressions.Expression<global::System.Func<TEntity,TProperty>> navigationPropertyPath)+ where TEntity : class+ {+ var precompiledQueryContext = (PrecompiledQueryContext<TEntity>)source;+ return precompiledQueryContext.ToIncludable<TProperty>();+ }++ [InterceptsLocation(@"/_/Aetheris/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs", 67, 10)]+ public static global::System.Linq.IOrderedQueryable<TSource> Query2_OrderBy3<TSource, TKey>(this global::System.Linq.IQueryable<TSource> source, global::System.Linq.Expressions.Expression<global::System.Func<TSource,TKey>> keySelector)+ {+ var precompiledQueryContext = (PrecompiledQueryContext<TSource>)source;+ return precompiledQueryContext;+ }++ [InterceptsLocation(@"/_/Aetheris/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs", 68, 10)]+ public static TSource[] Query2_ToArray4<TSource>(this global::System.Collections.Generic.IEnumerable<TSource> source)+ {+ var precompiledQueryContext = (PrecompiledQueryContext<TSource>)source;+ var queryContext = precompiledQueryContext.QueryContext;+ Query2_Executor ??= Query2_GenerateExecutor(precompiledQueryContext.DbContext, precompiledQueryContext.QueryContext);+ var queryingEnumerable = ((Func<QueryContext, IEnumerable<TSource>>)(Query2_Executor))(queryContext);+ return queryingEnumerable.ToArray();+ }++ private static object Query2_GenerateExecutor(DbContext dbContext, QueryContext queryContext)+ {+ var relationalModel = dbContext.Model.GetRelationalModel();+ var relationalTypeMappingSource = dbContext.GetService<IRelationalTypeMappingSource>();+ var materializerLiftableConstantContext = new RelationalMaterializerLiftableConstantContext(+ dbContext.GetService<ShapedQueryCompilingExpressionVisitorDependencies>(),+ dbContext.GetService<RelationalShapedQueryCompilingExpressionVisitorDependencies>(),+ dbContext.GetService<RelationalCommandBuilderDependencies>());+ var relationalCommandTemplate = ((IRelationalCommandTemplate)(new RelationalCommand(materializerLiftableConstantContext.CommandBuilderDependencies, "SELECT \"m\".\"Id\", \"m\".\"CatalogId\", \"m\".\"ConstitutiveClass\", \"m\".\"Designation\", \"m\".\"DisplayName\", \"m\".\"Family\", \"m\".\"FirmamentPath\", \"m\".\"Grade\", \"m\".\"ReferenceCondition\", \"m\".\"StableId\", \"m\".\"Standard\", \"m\".\"Temper\", \"m0\".\"Id\", \"m0\".\"Authority\", \"m0\".\"Condition\", \"m0\".\"Kind\", \"m0\".\"MaterialId\", \"m0\".\"Notes\", \"m0\".\"ReferenceTemperatureKelvin\", \"m0\".\"SourceId\", \"m0\".\"SourceUri\", \"m0\".\"UnitSymbol\", \"m0\".\"ValueSi\"\r\nFROM \"Materials\" AS \"m\"\r\nLEFT JOIN \"MaterialProperties\" AS \"m0\" ON \"m\".\"Id\" = \"m0\".\"MaterialId\"\r\nORDER BY \"m\".\"StableId\", \"m\".\"Id\"", "SELECT \"m\".\"Id\", \"m\".\"CatalogId\", \"m\".\"ConstitutiveClass\", \"m\".\"Designation\", \"m\".\"DisplayName\", \"m\".\"Family\", \"m\".\"FirmamentPath\", \"m\".\"Grade\", \"m\".\"ReferenceCondition\", \"m\".\"StableId\", \"m\".\"Standard\", \"m\".\"Temper\", \"m0\".\"Id\", \"m0\".\"Authority\", \"m0\".\"Condition\", \"m0\".\"Kind\", \"m0\".\"MaterialId\", \"m0\".\"Notes\", \"m0\".\"ReferenceTemperatureKelvin\", \"m0\".\"SourceId\", \"m0\".\"SourceUri\", \"m0\".\"UnitSymbol\", \"m0\".\"ValueSi\"\r\nFROM \"Materials\" AS \"m\"\r\nLEFT JOIN \"MaterialProperties\" AS \"m0\" ON \"m\".\"Id\" = \"m0\".\"MaterialId\"\r\nORDER BY \"m\".\"StableId\", \"m\".\"Id\"", new IRelationalParameter[] { })));+ var emptyValueBuffer = ValueBuffer.Empty;+ var emptySnapshot = Snapshot.Empty;+ var model = materializerLiftableConstantContext.Dependencies.Model;+ var materialEntityEntityType = model.FindEntityType("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity");+ var constitutiveClassProperty = ((IPropertyBase)(((ITypeBase)materialEntityEntityType).FindProperty("ConstitutiveClass")));+ var materialEntityEntityType0 = ((RuntimeEntityType)(materialEntityEntityType));+ var materialEntityPrimaryKeyProperties = materialEntityEntityType.FindPrimaryKey().Properties;+ var parentIdentifierLambda = object[] (QueryContext queryContext, DbDataReader dataReader) => new object[]+{+ ((object)(((int? )(dataReader.GetInt32(0)))))+};+ var findNavigation = materialEntityEntityType.FindNavigation("Properties");+ var propertiesNavigation = ((INavigationBase)(findNavigation));+ var propertiesNavigationCollectionAccessor = ((IPropertyBase)findNavigation).GetCollectionAccessor();+ var selfIdentifierLambda = object[] (QueryContext queryContext, DbDataReader dataReader) => new object[]+{+ ((object)((dataReader.IsDBNull(12) ? default(int? ) : ((int? )(dataReader.GetInt32(12))))))+};+ var parentIdentifierValueComparers = new Func<object, object, bool>[]+{+ bool (object left, object right) => (left == null ? right == null : right != null && ((int)(left)) == ((int)(right)))+};+ var materialPropertyEntityEntityType = model.FindEntityType("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity");+ var authorityProperty = ((IPropertyBase)(((ITypeBase)materialPropertyEntityEntityType).FindProperty("Authority")));+ var kindProperty = ((IPropertyBase)(((ITypeBase)materialPropertyEntityEntityType).FindProperty("Kind")));+ var materialPropertyEntityEntityType0 = ((RuntimeEntityType)(materialPropertyEntityEntityType));+ var materialInverseNavigation = ((INavigationBase)(materialPropertyEntityEntityType.FindNavigation("Material")));+ return IEnumerable<MaterialEntity> (QueryContext queryContext) => SingleQueryingEnumerable.Create(((RelationalQueryContext)(queryContext)), IRelationalCommandTemplate (Dictionary<string, object> parameters) => relationalCommandTemplate, (ReaderColumn[])(null), MaterialEntity (QueryContext queryContext, DbDataReader dataReader, ResultContext resultContext, SingleQueryResultCoordinator resultCoordinator) =>+{+ if (resultContext.Values == null)+ {+ IEntityType entityType1 = default(IEntityType);+ var materializationContext1 = new MaterializationContext(in emptyValueBuffer, queryContext.Context);+ var instance1 = default(MaterialEntity);+ if (((object)(dataReader.GetInt32(0))) != null)+ {+ var shadowSnapshot1 = emptySnapshot;+ entityType1 = materialEntityEntityType;+ if (entityType1 == materialEntityEntityType)+ {+ var instance = UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Ctor();+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Id_Set(instance) = dataReader.GetInt32(0);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_CatalogId_Set(instance) = dataReader.GetString(1);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_ConstitutiveClass_Set(instance) = ((ValueConverter<MaterialConstitutiveClass, string>)(((IReadOnlyProperty)(constitutiveClassProperty)).GetTypeMapping().Converter)).ConvertFromProviderTyped(dataReader.GetString(2));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Designation_Set(instance) = dataReader.GetString(3);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_DisplayName_Set(instance) = dataReader.GetString(4);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Family_Set(instance) = dataReader.GetString(5);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_FirmamentPath_Set(instance) = dataReader.GetString(6);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Grade_Set(instance) = (dataReader.IsDBNull(7) ? default(string) : dataReader.GetString(7));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_ReferenceCondition_Set(instance) = dataReader.GetString(8);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_StableId_Set(instance) = dataReader.GetString(9);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Standard_Set(instance) = (dataReader.IsDBNull(10) ? default(string) : dataReader.GetString(10));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Temper_Set(instance) = (dataReader.IsDBNull(11) ? default(string) : dataReader.GetString(11));+ if (instance is IInjectableService)+ {+ ((IInjectableService)(instance)).Injected(materializationContext1.Context, instance, QueryTrackingBehavior.NoTracking, materialEntityEntityType0);+ }++ instance1 = instance;+ }+ else+ {+ instance1 = default(MaterialEntity);+ }+ }+ else+ {+ var keyValues1 = new object[]+ {+ ((object)(dataReader.GetInt32(0)))+ };+ ShapedQueryCompilingExpressionVisitor.CreateNullKeyValueInNoTrackingQuery(materialEntityEntityType, materialEntityPrimaryKeyProperties, keyValues1);+ }++ var entity = instance1;+ resultContext.Values = new object[]+ {+ entity+ };+ RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.InitializeIncludeCollection<MaterialEntity, MaterialEntity>(0, queryContext, dataReader, resultCoordinator, ((MaterialEntity)(resultContext.Values[0])), parentIdentifierLambda, parentIdentifierLambda, propertiesNavigation, propertiesNavigationCollectionAccessor, false, true);+ }++ RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.PopulateIncludeCollection(0, queryContext, dataReader, resultCoordinator, parentIdentifierLambda, parentIdentifierLambda, selfIdentifierLambda, parentIdentifierValueComparers, parentIdentifierValueComparers, parentIdentifierValueComparers, MaterialPropertyEntity (QueryContext queryContext, DbDataReader dataReader, ResultContext resultContext, SingleQueryResultCoordinator resultCoordinator) =>+ {+ IEntityType entityType2 = default(IEntityType);+ var materializationContext2 = new MaterializationContext(in emptyValueBuffer, queryContext.Context);+ var instance2 = default(MaterialPropertyEntity);+ if ((dataReader.IsDBNull(12) ? default(object) : ((object)(dataReader.GetInt32(12)))) != null)+ {+ var shadowSnapshot2 = emptySnapshot;+ entityType2 = materialPropertyEntityEntityType;+ if (entityType2 == materialPropertyEntityEntityType)+ {+ var instance = UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Ctor();+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Id_Set(instance) = (dataReader.IsDBNull(12) ? default(int) : dataReader.GetInt32(12));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Authority_Set(instance) = (dataReader.IsDBNull(13) ? default(MaterialPropertyAuthority) : ((ValueConverter<MaterialPropertyAuthority, string>)(((IReadOnlyProperty)(authorityProperty)).GetTypeMapping().Converter)).ConvertFromProviderTyped(dataReader.GetString(13)));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Condition_Set(instance) = (dataReader.IsDBNull(14) ? default(string) : dataReader.GetString(14));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Kind_Set(instance) = (dataReader.IsDBNull(15) ? default(MaterialPropertyKind) : ((ValueConverter<MaterialPropertyKind, string>)(((IReadOnlyProperty)(kindProperty)).GetTypeMapping().Converter)).ConvertFromProviderTyped(dataReader.GetString(15)));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_MaterialId_Set(instance) = (dataReader.IsDBNull(16) ? default(int) : dataReader.GetInt32(16));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Notes_Set(instance) = (dataReader.IsDBNull(17) ? default(string) : dataReader.GetString(17));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_ReferenceTemperatureKelvin_Set(instance) = (dataReader.IsDBNull(18) ? default(double? ) : ((double? )(dataReader.GetDouble(18))));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_SourceId_Set(instance) = (dataReader.IsDBNull(19) ? default(string) : dataReader.GetString(19));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_SourceUri_Set(instance) = (dataReader.IsDBNull(20) ? default(string) : dataReader.GetString(20));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_UnitSymbol_Set(instance) = (dataReader.IsDBNull(21) ? default(string) : dataReader.GetString(21));+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_ValueSi_Set(instance) = (dataReader.IsDBNull(22) ? default(double) : dataReader.GetDouble(22));+ if (instance is IInjectableService)+ {+ ((IInjectableService)(instance)).Injected(materializationContext2.Context, instance, QueryTrackingBehavior.NoTracking, materialPropertyEntityEntityType0);+ }++ instance2 = instance;+ }+ else+ {+ instance2 = default(MaterialPropertyEntity);+ }+ }++ var entity = instance2;+ return entity;+ }, materialInverseNavigation, (MaterialEntity unnamed1, MaterialPropertyEntity unnamed2) =>+ {+ propertiesNavigationCollectionAccessor.Add(unnamed1, unnamed2, true);+ UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Material_Set(unnamed2) = unnamed1;+ }, false);+ return (resultCoordinator.ResultReady ? ((MaterialEntity)(resultContext.Values[0])) : default(MaterialEntity));+}, typeof(MaterialCatalogDbContext), false, false, true);+ }++ private static object Query2_Executor;++ #endregion Query2+ #region Unsafe accessors+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]+private static extern ref int UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_Id_Set(MaterialCatalogMetadataEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<CatalogId>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_CatalogId_Set(MaterialCatalogMetadataEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SchemaVersion>k__BackingField")]+private static extern ref int UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_SchemaVersion_Set(MaterialCatalogMetadataEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SeedVersion>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_SeedVersion_Set(MaterialCatalogMetadataEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Constructor)]+private static extern MaterialCatalogMetadataEntity UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialCatalogMetadataEntity_Ctor();+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]+private static extern ref int UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Id_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<CatalogId>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_CatalogId_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ConstitutiveClass>k__BackingField")]+private static extern ref MaterialConstitutiveClass UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_ConstitutiveClass_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Designation>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Designation_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<DisplayName>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_DisplayName_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Family>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Family_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<FirmamentPath>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_FirmamentPath_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Grade>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Grade_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ReferenceCondition>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_ReferenceCondition_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<StableId>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_StableId_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Standard>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Standard_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Temper>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Temper_Set(MaterialEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]+private static extern ref int UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Id_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Authority>k__BackingField")]+private static extern ref MaterialPropertyAuthority UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Authority_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Condition>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Condition_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Kind>k__BackingField")]+private static extern ref MaterialPropertyKind UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Kind_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<MaterialId>k__BackingField")]+private static extern ref int UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_MaterialId_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Notes>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Notes_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ReferenceTemperatureKelvin>k__BackingField")]+private static extern ref double? UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_ReferenceTemperatureKelvin_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SourceId>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_SourceId_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SourceUri>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_SourceUri_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<UnitSymbol>k__BackingField")]+private static extern ref string UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_UnitSymbol_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ValueSi>k__BackingField")]+private static extern ref double UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_ValueSi_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Material>k__BackingField")]+private static extern ref MaterialEntity UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Material_Set(MaterialPropertyEntity instance);+ [UnsafeAccessor(UnsafeAccessorKind.Constructor)]+private static extern MaterialEntity UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialEntity_Ctor();+ [UnsafeAccessor(UnsafeAccessorKind.Constructor)]+private static extern MaterialPropertyEntity UnsafeAccessor_Aetheris_Kernel_StandardLibrary_Materials_Database_MaterialPropertyEntity_Ctor();+ #endregion Unsafe accessors+ }+}++namespace System.Runtime.CompilerServices+{+ [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]+ file sealed class InterceptsLocationAttribute : Attribute+ {+ public InterceptsLocationAttribute(string filePath, int line, int column) { }+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextAssemblyAttributes.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextAssemblyAttributes.csnew file mode 100644index 00000000..032bb1fa--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextAssemblyAttributes.cs@@ -0,0 +1,9 @@+// <auto-generated />+using Aetheris.Kernel.StandardLibrary.Materials.Database;+using Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel;+using Microsoft.EntityFrameworkCore.Infrastructure;++#pragma warning disable 219, 612, 618+#nullable disable++[assembly: DbContextModel(typeof(MaterialCatalogDbContext), typeof(MaterialCatalogDbContextModel))]diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextModel.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextModel.csnew file mode 100644index 00000000..99875adf--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextModel.cs@@ -0,0 +1,47 @@+// <auto-generated />+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Metadata;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ [DbContext(typeof(MaterialCatalogDbContext))]+ public partial class MaterialCatalogDbContextModel : RuntimeModel+ {+ private static readonly bool _useOldBehavior31751 =+ System.AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue31751", out var enabled31751) && enabled31751;++ static MaterialCatalogDbContextModel()+ {+ var model = new MaterialCatalogDbContextModel();++ if (_useOldBehavior31751)+ {+ model.Initialize();+ }+ else+ {+ var thread = new System.Threading.Thread(RunInitialization, 10 * 1024 * 1024);+ thread.Start();+ thread.Join();++ void RunInitialization()+ {+ model.Initialize();+ }+ }++ model.Customize();+ _instance = (MaterialCatalogDbContextModel)model.FinalizeModel();+ }++ private static MaterialCatalogDbContextModel _instance;+ public static IModel Instance => _instance;++ partial void Initialize();++ partial void Customize();+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextModelBuilder.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextModelBuilder.csnew file mode 100644index 00000000..5c353805--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogDbContextModelBuilder.cs@@ -0,0 +1,395 @@+// <auto-generated />+using System;+using System.Collections.Generic;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Metadata;+using Microsoft.EntityFrameworkCore.Metadata.Internal;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Update.Internal;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ public partial class MaterialCatalogDbContextModel+ {+ private MaterialCatalogDbContextModel()+ : base(skipDetectChanges: false, modelId: new Guid("cbbcdd26-01c9-4e7c-a044-a673db089200"), entityTypeCount: 3)+ {+ }++ partial void Initialize()+ {+ var materialCatalogMetadataEntity = MaterialCatalogMetadataEntityEntityType.Create(this);+ var materialEntity = MaterialEntityEntityType.Create(this);+ var materialPropertyEntity = MaterialPropertyEntityEntityType.Create(this);++ MaterialPropertyEntityEntityType.CreateForeignKey1(materialPropertyEntity, materialEntity);++ MaterialCatalogMetadataEntityEntityType.CreateAnnotations(materialCatalogMetadataEntity);+ MaterialEntityEntityType.CreateAnnotations(materialEntity);+ MaterialPropertyEntityEntityType.CreateAnnotations(materialPropertyEntity);++ AddAnnotation("ProductVersion", "10.0.0");+ AddRuntimeAnnotation("Relational:RelationalModelFactory", () => CreateRelationalModel());+ }++ private IRelationalModel CreateRelationalModel()+ {+ var relationalModel = new RelationalModel(this);++ var materialCatalogMetadataEntity = FindEntityType("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity")!;++ var defaultTableMappings = new List<TableMappingBase<ColumnMappingBase>>();+ materialCatalogMetadataEntity.SetRuntimeAnnotation("Relational:DefaultMappings", defaultTableMappings);+ var aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase = new TableBase("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity", null, relationalModel);+ var catalogIdColumnBase = new ColumnBase<ColumnMappingBase>("CatalogId", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase.Columns.Add("CatalogId", catalogIdColumnBase);+ var idColumnBase = new ColumnBase<ColumnMappingBase>("Id", "INTEGER", aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase.Columns.Add("Id", idColumnBase);+ var schemaVersionColumnBase = new ColumnBase<ColumnMappingBase>("SchemaVersion", "INTEGER", aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase.Columns.Add("SchemaVersion", schemaVersionColumnBase);+ var seedVersionColumnBase = new ColumnBase<ColumnMappingBase>("SeedVersion", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase.Columns.Add("SeedVersion", seedVersionColumnBase);+ relationalModel.DefaultTables.Add("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity", aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase);+ var aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase = new TableMappingBase<ColumnMappingBase>(materialCatalogMetadataEntity, aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase, null);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityTableBase.AddTypeMapping(aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase, false);+ defaultTableMappings.Add(aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)idColumnBase, materialCatalogMetadataEntity.FindProperty("Id")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)catalogIdColumnBase, materialCatalogMetadataEntity.FindProperty("CatalogId")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)schemaVersionColumnBase, materialCatalogMetadataEntity.FindProperty("SchemaVersion")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)seedVersionColumnBase, materialCatalogMetadataEntity.FindProperty("SeedVersion")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialCatalogMetadataEntityMappingBase);++ var tableMappings = new List<TableMapping>();+ materialCatalogMetadataEntity.SetRuntimeAnnotation("Relational:TableMappings", tableMappings);+ var catalogMetadataTable = new Table("CatalogMetadata", null, relationalModel);+ var idColumn = new Column("Id", "INTEGER", catalogMetadataTable);+ catalogMetadataTable.Columns.Add("Id", idColumn);+ idColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<int>(idColumn);+ var catalogIdColumn = new Column("CatalogId", "TEXT", catalogMetadataTable);+ catalogMetadataTable.Columns.Add("CatalogId", catalogIdColumn);+ catalogIdColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(catalogIdColumn);+ var schemaVersionColumn = new Column("SchemaVersion", "INTEGER", catalogMetadataTable);+ catalogMetadataTable.Columns.Add("SchemaVersion", schemaVersionColumn);+ schemaVersionColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<int>(schemaVersionColumn);+ var seedVersionColumn = new Column("SeedVersion", "TEXT", catalogMetadataTable);+ catalogMetadataTable.Columns.Add("SeedVersion", seedVersionColumn);+ seedVersionColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(seedVersionColumn);+ relationalModel.Tables.Add(("CatalogMetadata", null), catalogMetadataTable);+ var catalogMetadataTableMapping = new TableMapping(materialCatalogMetadataEntity, catalogMetadataTable, null);+ catalogMetadataTable.AddTypeMapping(catalogMetadataTableMapping, false);+ tableMappings.Add(catalogMetadataTableMapping);+ RelationalModel.CreateColumnMapping(idColumn, materialCatalogMetadataEntity.FindProperty("Id")!, catalogMetadataTableMapping);+ RelationalModel.CreateColumnMapping(catalogIdColumn, materialCatalogMetadataEntity.FindProperty("CatalogId")!, catalogMetadataTableMapping);+ RelationalModel.CreateColumnMapping(schemaVersionColumn, materialCatalogMetadataEntity.FindProperty("SchemaVersion")!, catalogMetadataTableMapping);+ RelationalModel.CreateColumnMapping(seedVersionColumn, materialCatalogMetadataEntity.FindProperty("SeedVersion")!, catalogMetadataTableMapping);+ var pK_CatalogMetadata = new UniqueConstraint("PK_CatalogMetadata", catalogMetadataTable, new[] { idColumn });+ catalogMetadataTable.PrimaryKey = pK_CatalogMetadata;+ pK_CatalogMetadata.SetRowKeyValueFactory(new SimpleRowKeyValueFactory<int>(pK_CatalogMetadata));+ var pK_CatalogMetadataKey = RelationalModel.GetKey(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity",+ new[] { "Id" });+ pK_CatalogMetadata.MappedKeys.Add(pK_CatalogMetadataKey);+ RelationalModel.GetOrCreateUniqueConstraints(pK_CatalogMetadataKey).Add(pK_CatalogMetadata);+ catalogMetadataTable.UniqueConstraints.Add("PK_CatalogMetadata", pK_CatalogMetadata);+ var iX_CatalogMetadata_CatalogId = new TableIndex(+ "IX_CatalogMetadata_CatalogId", catalogMetadataTable, new[] { catalogIdColumn }, true);+ iX_CatalogMetadata_CatalogId.SetRowIndexValueFactory(new SimpleRowIndexValueFactory<string>(iX_CatalogMetadata_CatalogId));+ var iX_CatalogMetadata_CatalogIdIx = RelationalModel.GetIndex(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity",+ new[] { "CatalogId" });+ iX_CatalogMetadata_CatalogId.MappedIndexes.Add(iX_CatalogMetadata_CatalogIdIx);+ RelationalModel.GetOrCreateTableIndexes(iX_CatalogMetadata_CatalogIdIx).Add(iX_CatalogMetadata_CatalogId);+ catalogMetadataTable.Indexes.Add("IX_CatalogMetadata_CatalogId", iX_CatalogMetadata_CatalogId);++ var materialEntity = FindEntityType("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity")!;++ var defaultTableMappings0 = new List<TableMappingBase<ColumnMappingBase>>();+ materialEntity.SetRuntimeAnnotation("Relational:DefaultMappings", defaultTableMappings0);+ var aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase = new TableBase("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity", null, relationalModel);+ var catalogIdColumnBase0 = new ColumnBase<ColumnMappingBase>("CatalogId", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("CatalogId", catalogIdColumnBase0);+ var constitutiveClassColumnBase = new ColumnBase<ColumnMappingBase>("ConstitutiveClass", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("ConstitutiveClass", constitutiveClassColumnBase);+ var designationColumnBase = new ColumnBase<ColumnMappingBase>("Designation", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("Designation", designationColumnBase);+ var displayNameColumnBase = new ColumnBase<ColumnMappingBase>("DisplayName", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("DisplayName", displayNameColumnBase);+ var familyColumnBase = new ColumnBase<ColumnMappingBase>("Family", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("Family", familyColumnBase);+ var firmamentPathColumnBase = new ColumnBase<ColumnMappingBase>("FirmamentPath", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("FirmamentPath", firmamentPathColumnBase);+ var gradeColumnBase = new ColumnBase<ColumnMappingBase>("Grade", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase)+ {+ IsNullable = true+ };+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("Grade", gradeColumnBase);+ var idColumnBase0 = new ColumnBase<ColumnMappingBase>("Id", "INTEGER", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("Id", idColumnBase0);+ var referenceConditionColumnBase = new ColumnBase<ColumnMappingBase>("ReferenceCondition", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("ReferenceCondition", referenceConditionColumnBase);+ var stableIdColumnBase = new ColumnBase<ColumnMappingBase>("StableId", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("StableId", stableIdColumnBase);+ var standardColumnBase = new ColumnBase<ColumnMappingBase>("Standard", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase)+ {+ IsNullable = true+ };+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("Standard", standardColumnBase);+ var temperColumnBase = new ColumnBase<ColumnMappingBase>("Temper", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase)+ {+ IsNullable = true+ };+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.Columns.Add("Temper", temperColumnBase);+ relationalModel.DefaultTables.Add("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity", aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase);+ var aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase = new TableMappingBase<ColumnMappingBase>(materialEntity, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase, null);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityTableBase.AddTypeMapping(aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase, false);+ defaultTableMappings0.Add(aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)idColumnBase0, materialEntity.FindProperty("Id")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)catalogIdColumnBase0, materialEntity.FindProperty("CatalogId")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)constitutiveClassColumnBase, materialEntity.FindProperty("ConstitutiveClass")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)designationColumnBase, materialEntity.FindProperty("Designation")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)displayNameColumnBase, materialEntity.FindProperty("DisplayName")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)familyColumnBase, materialEntity.FindProperty("Family")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)firmamentPathColumnBase, materialEntity.FindProperty("FirmamentPath")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)gradeColumnBase, materialEntity.FindProperty("Grade")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)referenceConditionColumnBase, materialEntity.FindProperty("ReferenceCondition")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)stableIdColumnBase, materialEntity.FindProperty("StableId")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)standardColumnBase, materialEntity.FindProperty("Standard")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)temperColumnBase, materialEntity.FindProperty("Temper")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialEntityMappingBase);++ var tableMappings0 = new List<TableMapping>();+ materialEntity.SetRuntimeAnnotation("Relational:TableMappings", tableMappings0);+ var materialsTable = new Table("Materials", null, relationalModel);+ var idColumn0 = new Column("Id", "INTEGER", materialsTable);+ materialsTable.Columns.Add("Id", idColumn0);+ idColumn0.Accessors = ColumnAccessorsFactory.CreateGeneric<int>(idColumn0);+ var catalogIdColumn0 = new Column("CatalogId", "TEXT", materialsTable);+ materialsTable.Columns.Add("CatalogId", catalogIdColumn0);+ catalogIdColumn0.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(catalogIdColumn0);+ var constitutiveClassColumn = new Column("ConstitutiveClass", "TEXT", materialsTable);+ materialsTable.Columns.Add("ConstitutiveClass", constitutiveClassColumn);+ constitutiveClassColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(constitutiveClassColumn);+ var designationColumn = new Column("Designation", "TEXT", materialsTable);+ materialsTable.Columns.Add("Designation", designationColumn);+ designationColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(designationColumn);+ var displayNameColumn = new Column("DisplayName", "TEXT", materialsTable);+ materialsTable.Columns.Add("DisplayName", displayNameColumn);+ displayNameColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(displayNameColumn);+ var familyColumn = new Column("Family", "TEXT", materialsTable);+ materialsTable.Columns.Add("Family", familyColumn);+ familyColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(familyColumn);+ var firmamentPathColumn = new Column("FirmamentPath", "TEXT", materialsTable);+ materialsTable.Columns.Add("FirmamentPath", firmamentPathColumn);+ firmamentPathColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(firmamentPathColumn);+ var gradeColumn = new Column("Grade", "TEXT", materialsTable)+ {+ IsNullable = true+ };+ materialsTable.Columns.Add("Grade", gradeColumn);+ gradeColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(gradeColumn);+ var referenceConditionColumn = new Column("ReferenceCondition", "TEXT", materialsTable);+ materialsTable.Columns.Add("ReferenceCondition", referenceConditionColumn);+ referenceConditionColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(referenceConditionColumn);+ var stableIdColumn = new Column("StableId", "TEXT", materialsTable);+ materialsTable.Columns.Add("StableId", stableIdColumn);+ stableIdColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(stableIdColumn);+ var standardColumn = new Column("Standard", "TEXT", materialsTable)+ {+ IsNullable = true+ };+ materialsTable.Columns.Add("Standard", standardColumn);+ standardColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(standardColumn);+ var temperColumn = new Column("Temper", "TEXT", materialsTable)+ {+ IsNullable = true+ };+ materialsTable.Columns.Add("Temper", temperColumn);+ temperColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(temperColumn);+ relationalModel.Tables.Add(("Materials", null), materialsTable);+ var materialsTableMapping = new TableMapping(materialEntity, materialsTable, null);+ materialsTable.AddTypeMapping(materialsTableMapping, false);+ tableMappings0.Add(materialsTableMapping);+ RelationalModel.CreateColumnMapping(idColumn0, materialEntity.FindProperty("Id")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(catalogIdColumn0, materialEntity.FindProperty("CatalogId")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(constitutiveClassColumn, materialEntity.FindProperty("ConstitutiveClass")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(designationColumn, materialEntity.FindProperty("Designation")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(displayNameColumn, materialEntity.FindProperty("DisplayName")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(familyColumn, materialEntity.FindProperty("Family")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(firmamentPathColumn, materialEntity.FindProperty("FirmamentPath")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(gradeColumn, materialEntity.FindProperty("Grade")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(referenceConditionColumn, materialEntity.FindProperty("ReferenceCondition")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(stableIdColumn, materialEntity.FindProperty("StableId")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(standardColumn, materialEntity.FindProperty("Standard")!, materialsTableMapping);+ RelationalModel.CreateColumnMapping(temperColumn, materialEntity.FindProperty("Temper")!, materialsTableMapping);+ var pK_Materials = new UniqueConstraint("PK_Materials", materialsTable, new[] { idColumn0 });+ materialsTable.PrimaryKey = pK_Materials;+ pK_Materials.SetRowKeyValueFactory(new SimpleRowKeyValueFactory<int>(pK_Materials));+ var pK_MaterialsKey = RelationalModel.GetKey(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity",+ new[] { "Id" });+ pK_Materials.MappedKeys.Add(pK_MaterialsKey);+ RelationalModel.GetOrCreateUniqueConstraints(pK_MaterialsKey).Add(pK_Materials);+ materialsTable.UniqueConstraints.Add("PK_Materials", pK_Materials);+ var iX_Materials_CatalogId_StableId = new TableIndex(+ "IX_Materials_CatalogId_StableId", materialsTable, new[] { catalogIdColumn0, stableIdColumn }, true);+ iX_Materials_CatalogId_StableId.SetRowIndexValueFactory(new CompositeRowIndexValueFactory(iX_Materials_CatalogId_StableId));+ var iX_Materials_CatalogId_StableIdIx = RelationalModel.GetIndex(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity",+ new[] { "CatalogId", "StableId" });+ iX_Materials_CatalogId_StableId.MappedIndexes.Add(iX_Materials_CatalogId_StableIdIx);+ RelationalModel.GetOrCreateTableIndexes(iX_Materials_CatalogId_StableIdIx).Add(iX_Materials_CatalogId_StableId);+ materialsTable.Indexes.Add("IX_Materials_CatalogId_StableId", iX_Materials_CatalogId_StableId);+ var iX_Materials_FirmamentPath = new TableIndex(+ "IX_Materials_FirmamentPath", materialsTable, new[] { firmamentPathColumn }, true);+ iX_Materials_FirmamentPath.SetRowIndexValueFactory(new SimpleRowIndexValueFactory<string>(iX_Materials_FirmamentPath));+ var iX_Materials_FirmamentPathIx = RelationalModel.GetIndex(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity",+ new[] { "FirmamentPath" });+ iX_Materials_FirmamentPath.MappedIndexes.Add(iX_Materials_FirmamentPathIx);+ RelationalModel.GetOrCreateTableIndexes(iX_Materials_FirmamentPathIx).Add(iX_Materials_FirmamentPath);+ materialsTable.Indexes.Add("IX_Materials_FirmamentPath", iX_Materials_FirmamentPath);++ var materialPropertyEntity = FindEntityType("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity")!;++ var defaultTableMappings1 = new List<TableMappingBase<ColumnMappingBase>>();+ materialPropertyEntity.SetRuntimeAnnotation("Relational:DefaultMappings", defaultTableMappings1);+ var aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase = new TableBase("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity", null, relationalModel);+ var authorityColumnBase = new ColumnBase<ColumnMappingBase>("Authority", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("Authority", authorityColumnBase);+ var conditionColumnBase = new ColumnBase<ColumnMappingBase>("Condition", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("Condition", conditionColumnBase);+ var idColumnBase1 = new ColumnBase<ColumnMappingBase>("Id", "INTEGER", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("Id", idColumnBase1);+ var kindColumnBase = new ColumnBase<ColumnMappingBase>("Kind", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("Kind", kindColumnBase);+ var materialIdColumnBase = new ColumnBase<ColumnMappingBase>("MaterialId", "INTEGER", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("MaterialId", materialIdColumnBase);+ var notesColumnBase = new ColumnBase<ColumnMappingBase>("Notes", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase)+ {+ IsNullable = true+ };+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("Notes", notesColumnBase);+ var referenceTemperatureKelvinColumnBase = new ColumnBase<ColumnMappingBase>("ReferenceTemperatureKelvin", "REAL", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase)+ {+ IsNullable = true+ };+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("ReferenceTemperatureKelvin", referenceTemperatureKelvinColumnBase);+ var sourceIdColumnBase = new ColumnBase<ColumnMappingBase>("SourceId", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("SourceId", sourceIdColumnBase);+ var sourceUriColumnBase = new ColumnBase<ColumnMappingBase>("SourceUri", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("SourceUri", sourceUriColumnBase);+ var unitSymbolColumnBase = new ColumnBase<ColumnMappingBase>("UnitSymbol", "TEXT", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("UnitSymbol", unitSymbolColumnBase);+ var valueSiColumnBase = new ColumnBase<ColumnMappingBase>("ValueSi", "REAL", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.Columns.Add("ValueSi", valueSiColumnBase);+ relationalModel.DefaultTables.Add("Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity", aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase);+ var aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase = new TableMappingBase<ColumnMappingBase>(materialPropertyEntity, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase, null);+ aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityTableBase.AddTypeMapping(aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase, false);+ defaultTableMappings1.Add(aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)idColumnBase1, materialPropertyEntity.FindProperty("Id")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)authorityColumnBase, materialPropertyEntity.FindProperty("Authority")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)conditionColumnBase, materialPropertyEntity.FindProperty("Condition")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)kindColumnBase, materialPropertyEntity.FindProperty("Kind")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)materialIdColumnBase, materialPropertyEntity.FindProperty("MaterialId")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)notesColumnBase, materialPropertyEntity.FindProperty("Notes")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)referenceTemperatureKelvinColumnBase, materialPropertyEntity.FindProperty("ReferenceTemperatureKelvin")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)sourceIdColumnBase, materialPropertyEntity.FindProperty("SourceId")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)sourceUriColumnBase, materialPropertyEntity.FindProperty("SourceUri")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)unitSymbolColumnBase, materialPropertyEntity.FindProperty("UnitSymbol")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);+ RelationalModel.CreateColumnMapping((ColumnBase<ColumnMappingBase>)valueSiColumnBase, materialPropertyEntity.FindProperty("ValueSi")!, aetherisKernelStandardLibraryMaterialsDatabaseMaterialPropertyEntityMappingBase);++ var tableMappings1 = new List<TableMapping>();+ materialPropertyEntity.SetRuntimeAnnotation("Relational:TableMappings", tableMappings1);+ var materialPropertiesTable = new Table("MaterialProperties", null, relationalModel);+ var idColumn1 = new Column("Id", "INTEGER", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("Id", idColumn1);+ idColumn1.Accessors = ColumnAccessorsFactory.CreateGeneric<int>(idColumn1);+ var authorityColumn = new Column("Authority", "TEXT", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("Authority", authorityColumn);+ authorityColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(authorityColumn);+ var conditionColumn = new Column("Condition", "TEXT", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("Condition", conditionColumn);+ conditionColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(conditionColumn);+ var kindColumn = new Column("Kind", "TEXT", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("Kind", kindColumn);+ kindColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(kindColumn);+ var materialIdColumn = new Column("MaterialId", "INTEGER", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("MaterialId", materialIdColumn);+ materialIdColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<int>(materialIdColumn);+ var notesColumn = new Column("Notes", "TEXT", materialPropertiesTable)+ {+ IsNullable = true+ };+ materialPropertiesTable.Columns.Add("Notes", notesColumn);+ notesColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(notesColumn);+ var referenceTemperatureKelvinColumn = new Column("ReferenceTemperatureKelvin", "REAL", materialPropertiesTable)+ {+ IsNullable = true+ };+ materialPropertiesTable.Columns.Add("ReferenceTemperatureKelvin", referenceTemperatureKelvinColumn);+ referenceTemperatureKelvinColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<double>(referenceTemperatureKelvinColumn);+ var sourceIdColumn = new Column("SourceId", "TEXT", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("SourceId", sourceIdColumn);+ sourceIdColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(sourceIdColumn);+ var sourceUriColumn = new Column("SourceUri", "TEXT", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("SourceUri", sourceUriColumn);+ sourceUriColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(sourceUriColumn);+ var unitSymbolColumn = new Column("UnitSymbol", "TEXT", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("UnitSymbol", unitSymbolColumn);+ unitSymbolColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<string>(unitSymbolColumn);+ var valueSiColumn = new Column("ValueSi", "REAL", materialPropertiesTable);+ materialPropertiesTable.Columns.Add("ValueSi", valueSiColumn);+ valueSiColumn.Accessors = ColumnAccessorsFactory.CreateGeneric<double>(valueSiColumn);+ relationalModel.Tables.Add(("MaterialProperties", null), materialPropertiesTable);+ var materialPropertiesTableMapping = new TableMapping(materialPropertyEntity, materialPropertiesTable, null);+ materialPropertiesTable.AddTypeMapping(materialPropertiesTableMapping, false);+ tableMappings1.Add(materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(idColumn1, materialPropertyEntity.FindProperty("Id")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(authorityColumn, materialPropertyEntity.FindProperty("Authority")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(conditionColumn, materialPropertyEntity.FindProperty("Condition")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(kindColumn, materialPropertyEntity.FindProperty("Kind")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(materialIdColumn, materialPropertyEntity.FindProperty("MaterialId")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(notesColumn, materialPropertyEntity.FindProperty("Notes")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(referenceTemperatureKelvinColumn, materialPropertyEntity.FindProperty("ReferenceTemperatureKelvin")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(sourceIdColumn, materialPropertyEntity.FindProperty("SourceId")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(sourceUriColumn, materialPropertyEntity.FindProperty("SourceUri")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(unitSymbolColumn, materialPropertyEntity.FindProperty("UnitSymbol")!, materialPropertiesTableMapping);+ RelationalModel.CreateColumnMapping(valueSiColumn, materialPropertyEntity.FindProperty("ValueSi")!, materialPropertiesTableMapping);+ var pK_MaterialProperties = new UniqueConstraint("PK_MaterialProperties", materialPropertiesTable, new[] { idColumn1 });+ materialPropertiesTable.PrimaryKey = pK_MaterialProperties;+ pK_MaterialProperties.SetRowKeyValueFactory(new SimpleRowKeyValueFactory<int>(pK_MaterialProperties));+ var pK_MaterialPropertiesKey = RelationalModel.GetKey(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity",+ new[] { "Id" });+ pK_MaterialProperties.MappedKeys.Add(pK_MaterialPropertiesKey);+ RelationalModel.GetOrCreateUniqueConstraints(pK_MaterialPropertiesKey).Add(pK_MaterialProperties);+ materialPropertiesTable.UniqueConstraints.Add("PK_MaterialProperties", pK_MaterialProperties);+ var iX_MaterialProperties_MaterialId_Kind = new TableIndex(+ "IX_MaterialProperties_MaterialId_Kind", materialPropertiesTable, new[] { materialIdColumn, kindColumn }, true);+ iX_MaterialProperties_MaterialId_Kind.SetRowIndexValueFactory(new CompositeRowIndexValueFactory(iX_MaterialProperties_MaterialId_Kind));+ var iX_MaterialProperties_MaterialId_KindIx = RelationalModel.GetIndex(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity",+ new[] { "MaterialId", "Kind" });+ iX_MaterialProperties_MaterialId_Kind.MappedIndexes.Add(iX_MaterialProperties_MaterialId_KindIx);+ RelationalModel.GetOrCreateTableIndexes(iX_MaterialProperties_MaterialId_KindIx).Add(iX_MaterialProperties_MaterialId_Kind);+ materialPropertiesTable.Indexes.Add("IX_MaterialProperties_MaterialId_Kind", iX_MaterialProperties_MaterialId_Kind);+ var fK_MaterialProperties_Materials_MaterialId = new ForeignKeyConstraint(+ "FK_MaterialProperties_Materials_MaterialId", materialPropertiesTable, materialsTable,+ new[] { materialIdColumn },+ materialsTable.FindUniqueConstraint("PK_Materials")!, ReferentialAction.Cascade);+ fK_MaterialProperties_Materials_MaterialId.SetRowForeignKeyValueFactory(RowForeignKeyValueFactoryFactory.CreateSimpleNonNullableFactory<int, int>(fK_MaterialProperties_Materials_MaterialId));+ var fK_MaterialProperties_Materials_MaterialIdFk = RelationalModel.GetForeignKey(this,+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity",+ new[] { "MaterialId" },+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity",+ new[] { "Id" });+ fK_MaterialProperties_Materials_MaterialId.MappedForeignKeys.Add(fK_MaterialProperties_Materials_MaterialIdFk);+ RelationalModel.GetOrCreateForeignKeyConstraints(fK_MaterialProperties_Materials_MaterialIdFk).Add(fK_MaterialProperties_Materials_MaterialId);+ materialPropertiesTable.ForeignKeyConstraints.Add(fK_MaterialProperties_Materials_MaterialId);+ materialsTable.ReferencingForeignKeyConstraints.Add(fK_MaterialProperties_Materials_MaterialId);+ return relationalModel.MakeReadOnly();+ }+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogMetadataEntityEntityType.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogMetadataEntityEntityType.csnew file mode 100644index 00000000..65db61c3--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogMetadataEntityEntityType.cs@@ -0,0 +1,258 @@+// <auto-generated />+using System;+using System.Collections.Generic;+using System.Reflection;+using Microsoft.EntityFrameworkCore.ChangeTracking;+using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Metadata;+using Microsoft.EntityFrameworkCore.Metadata.Internal;+using Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal;+using Microsoft.EntityFrameworkCore.Storage;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ [EntityFrameworkInternal]+ public partial class MaterialCatalogMetadataEntityEntityType+ {+ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)+ {+ var runtimeEntityType = model.AddEntityType(+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialCatalogMetadataEntity",+ typeof(MaterialCatalogMetadataEntity),+ baseEntityType,+ propertyCount: 4,+ unnamedIndexCount: 1,+ keyCount: 1);++ var id = runtimeEntityType.AddProperty(+ "Id",+ typeof(int),+ propertyInfo: typeof(MaterialCatalogMetadataEntity).GetProperty("Id", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialCatalogMetadataEntity).GetField("<Id>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ valueGenerated: ValueGenerated.OnAdd,+ afterSaveBehavior: PropertySaveBehavior.Throw,+ sentinel: 0);+ id.SetGetter(+ int (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.Id(instance),+ bool (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.Id(instance) == 0);+ id.SetSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, int value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.Id(instance) = value;+ return instance;+ });+ id.SetMaterializationSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, int value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.Id(instance) = value;+ return instance;+ });+ id.SetAccessors(+ int (IInternalEntry entry) => (entry.FlaggedAsStoreGenerated(0) ? entry.ReadStoreGeneratedValue<int>(0) : (entry.FlaggedAsTemporary(0) && MaterialCatalogMetadataEntityUnsafeAccessors.Id(((MaterialCatalogMetadataEntity)(entry.Entity))) == 0 ? entry.ReadTemporaryValue<int>(0) : MaterialCatalogMetadataEntityUnsafeAccessors.Id(((MaterialCatalogMetadataEntity)(entry.Entity))))),+ int (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.Id(((MaterialCatalogMetadataEntity)(entry.Entity))),+ int (IInternalEntry entry) => entry.ReadOriginalValue<int>(id, 0),+ int (IInternalEntry entry) => ((InternalEntityEntry)(entry)).ReadRelationshipSnapshotValue<int>(id, 0));+ id.SetPropertyIndexes(+ index: 0,+ originalValueIndex: 0,+ shadowIndex: -1,+ relationshipIndex: 0,+ storeGenerationIndex: 0);+ id.TypeMapping = IntTypeMapping.Default.Clone(+ comparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ keyComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ providerValueComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "INTEGER"));+ id.SetCurrentValueComparer(new EntryCurrentValueComparer<int>(id));++ var catalogId = runtimeEntityType.AddProperty(+ "CatalogId",+ typeof(string),+ propertyInfo: typeof(MaterialCatalogMetadataEntity).GetProperty("CatalogId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialCatalogMetadataEntity).GetField("<CatalogId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ catalogId.SetGetter(+ string (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.CatalogId(instance),+ bool (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.CatalogId(instance) == null);+ catalogId.SetSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, string value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.CatalogId(instance) = value;+ return instance;+ });+ catalogId.SetMaterializationSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, string value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.CatalogId(instance) = value;+ return instance;+ });+ catalogId.SetAccessors(+ string (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.CatalogId(((MaterialCatalogMetadataEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.CatalogId(((MaterialCatalogMetadataEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(catalogId, 1),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(catalogId));+ catalogId.SetPropertyIndexes(+ index: 1,+ originalValueIndex: 1,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ catalogId.TypeMapping = SqliteStringTypeMapping.Default;+ catalogId.SetCurrentValueComparer(new EntryCurrentValueComparer<string>(catalogId));++ var schemaVersion = runtimeEntityType.AddProperty(+ "SchemaVersion",+ typeof(int),+ propertyInfo: typeof(MaterialCatalogMetadataEntity).GetProperty("SchemaVersion", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialCatalogMetadataEntity).GetField("<SchemaVersion>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ sentinel: 0);+ schemaVersion.SetGetter(+ int (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.SchemaVersion(instance),+ bool (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.SchemaVersion(instance) == 0);+ schemaVersion.SetSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, int value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.SchemaVersion(instance) = value;+ return instance;+ });+ schemaVersion.SetMaterializationSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, int value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.SchemaVersion(instance) = value;+ return instance;+ });+ schemaVersion.SetAccessors(+ int (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.SchemaVersion(((MaterialCatalogMetadataEntity)(entry.Entity))),+ int (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.SchemaVersion(((MaterialCatalogMetadataEntity)(entry.Entity))),+ int (IInternalEntry entry) => entry.ReadOriginalValue<int>(schemaVersion, 2),+ int (IInternalEntry entry) => entry.GetCurrentValue<int>(schemaVersion));+ schemaVersion.SetPropertyIndexes(+ index: 2,+ originalValueIndex: 2,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ schemaVersion.TypeMapping = IntTypeMapping.Default.Clone(+ comparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ keyComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ providerValueComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "INTEGER"));++ var seedVersion = runtimeEntityType.AddProperty(+ "SeedVersion",+ typeof(string),+ propertyInfo: typeof(MaterialCatalogMetadataEntity).GetProperty("SeedVersion", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialCatalogMetadataEntity).GetField("<SeedVersion>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ seedVersion.SetGetter(+ string (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.SeedVersion(instance),+ bool (MaterialCatalogMetadataEntity instance) => MaterialCatalogMetadataEntityUnsafeAccessors.SeedVersion(instance) == null);+ seedVersion.SetSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, string value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.SeedVersion(instance) = value;+ return instance;+ });+ seedVersion.SetMaterializationSetter(+ MaterialCatalogMetadataEntity (MaterialCatalogMetadataEntity instance, string value) =>+ {+ MaterialCatalogMetadataEntityUnsafeAccessors.SeedVersion(instance) = value;+ return instance;+ });+ seedVersion.SetAccessors(+ string (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.SeedVersion(((MaterialCatalogMetadataEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialCatalogMetadataEntityUnsafeAccessors.SeedVersion(((MaterialCatalogMetadataEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(seedVersion, 3),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(seedVersion));+ seedVersion.SetPropertyIndexes(+ index: 3,+ originalValueIndex: 3,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ seedVersion.TypeMapping = SqliteStringTypeMapping.Default;++ var key = runtimeEntityType.AddKey(+ new[] { id });+ runtimeEntityType.SetPrimaryKey(key);++ var index = runtimeEntityType.AddIndex(+ new[] { catalogId },+ unique: true);++ return runtimeEntityType;+ }++ public static void CreateAnnotations(RuntimeEntityType runtimeEntityType)+ {+ var id = runtimeEntityType.FindProperty("Id");+ var catalogId = runtimeEntityType.FindProperty("CatalogId");+ var schemaVersion = runtimeEntityType.FindProperty("SchemaVersion");+ var seedVersion = runtimeEntityType.FindProperty("SeedVersion");+ var key = runtimeEntityType.FindKey(new[] { id });+ key.SetPrincipalKeyValueFactory(KeyValueFactoryFactory.CreateSimpleNonNullableFactory<int>(key));+ key.SetIdentityMapFactory(IdentityMapFactoryFactory.CreateFactory<int>(key));+ runtimeEntityType.SetOriginalValuesFactory(+ ISnapshot (IInternalEntry source) =>+ {+ var structuralType = ((MaterialCatalogMetadataEntity)(source.Entity));+ return ((ISnapshot)(new Snapshot<int, string, int, string>(((ValueComparer<int>)(((IProperty)id).GetValueComparer())).Snapshot(source.GetCurrentValue<int>(id)), (source.GetCurrentValue<string>(catalogId) == null ? null : ((ValueComparer<string>)(((IProperty)catalogId).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(catalogId))), ((ValueComparer<int>)(((IProperty)schemaVersion).GetValueComparer())).Snapshot(source.GetCurrentValue<int>(schemaVersion)), (source.GetCurrentValue<string>(seedVersion) == null ? null : ((ValueComparer<string>)(((IProperty)seedVersion).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(seedVersion))))));+ });+ runtimeEntityType.SetStoreGeneratedValuesFactory(+ ISnapshot () => ((ISnapshot)(new Snapshot<int>(((ValueComparer<int>)(((IProperty)id).GetValueComparer())).Snapshot(default(int))))));+ runtimeEntityType.SetTemporaryValuesFactory(+ ISnapshot (IInternalEntry source) => ((ISnapshot)(new Snapshot<int>(default(int)))));+ runtimeEntityType.SetShadowValuesFactory(+ ISnapshot (IDictionary<string, object> source) => Snapshot.Empty);+ runtimeEntityType.SetEmptyShadowValuesFactory(+ ISnapshot () => Snapshot.Empty);+ runtimeEntityType.SetRelationshipSnapshotFactory(+ ISnapshot (IInternalEntry source) =>+ {+ var structuralType = ((MaterialCatalogMetadataEntity)(source.Entity));+ return ((ISnapshot)(new Snapshot<int>(((ValueComparer<int>)(((IProperty)id).GetKeyValueComparer())).Snapshot(source.GetCurrentValue<int>(id)))));+ });+ runtimeEntityType.SetCounts(new PropertyCounts(+ propertyCount: 4,+ navigationCount: 0,+ complexPropertyCount: 0,+ complexCollectionCount: 0,+ originalValueCount: 4,+ shadowCount: 0,+ relationshipCount: 1,+ storeGeneratedCount: 1));+ runtimeEntityType.AddAnnotation("Relational:FunctionName", null);+ runtimeEntityType.AddAnnotation("Relational:Schema", null);+ runtimeEntityType.AddAnnotation("Relational:SqlQuery", null);+ runtimeEntityType.AddAnnotation("Relational:TableName", "CatalogMetadata");+ runtimeEntityType.AddAnnotation("Relational:ViewName", null);+ runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);++ Customize(runtimeEntityType);+ }++ static partial void Customize(RuntimeEntityType runtimeEntityType);+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogMetadataEntityUnsafeAccessors.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogMetadataEntityUnsafeAccessors.csnew file mode 100644index 00000000..138ea32b--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialCatalogMetadataEntityUnsafeAccessors.cs@@ -0,0 +1,24 @@+// <auto-generated />+using System;+using System.Runtime.CompilerServices;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ public static class MaterialCatalogMetadataEntityUnsafeAccessors+ {+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]+ public static extern ref int Id(MaterialCatalogMetadataEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<CatalogId>k__BackingField")]+ public static extern ref string CatalogId(MaterialCatalogMetadataEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SchemaVersion>k__BackingField")]+ public static extern ref int SchemaVersion(MaterialCatalogMetadataEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SeedVersion>k__BackingField")]+ public static extern ref string SeedVersion(MaterialCatalogMetadataEntity @this);+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialEntityEntityType.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialEntityEntityType.csnew file mode 100644index 00000000..cfb8931f--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialEntityEntityType.cs@@ -0,0 +1,551 @@+// <auto-generated />+using System;+using System.Collections.Generic;+using System.Reflection;+using Microsoft.EntityFrameworkCore.ChangeTracking;+using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Metadata;+using Microsoft.EntityFrameworkCore.Metadata.Internal;+using Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal;+using Microsoft.EntityFrameworkCore.Storage;+using Microsoft.EntityFrameworkCore.Storage.Json;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ [EntityFrameworkInternal]+ public partial class MaterialEntityEntityType+ {+ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)+ {+ var runtimeEntityType = model.AddEntityType(+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialEntity",+ typeof(MaterialEntity),+ baseEntityType,+ propertyCount: 12,+ navigationCount: 1,+ unnamedIndexCount: 2,+ keyCount: 1);++ var id = runtimeEntityType.AddProperty(+ "Id",+ typeof(int),+ propertyInfo: typeof(MaterialEntity).GetProperty("Id", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Id>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ valueGenerated: ValueGenerated.OnAdd,+ afterSaveBehavior: PropertySaveBehavior.Throw,+ sentinel: 0);+ id.SetGetter(+ int (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Id(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Id(instance) == 0);+ id.SetSetter(+ MaterialEntity (MaterialEntity instance, int value) =>+ {+ MaterialEntityUnsafeAccessors.Id(instance) = value;+ return instance;+ });+ id.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, int value) =>+ {+ MaterialEntityUnsafeAccessors.Id(instance) = value;+ return instance;+ });+ id.SetAccessors(+ int (IInternalEntry entry) => (entry.FlaggedAsStoreGenerated(0) ? entry.ReadStoreGeneratedValue<int>(0) : (entry.FlaggedAsTemporary(0) && MaterialEntityUnsafeAccessors.Id(((MaterialEntity)(entry.Entity))) == 0 ? entry.ReadTemporaryValue<int>(0) : MaterialEntityUnsafeAccessors.Id(((MaterialEntity)(entry.Entity))))),+ int (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Id(((MaterialEntity)(entry.Entity))),+ int (IInternalEntry entry) => entry.ReadOriginalValue<int>(id, 0),+ int (IInternalEntry entry) => ((InternalEntityEntry)(entry)).ReadRelationshipSnapshotValue<int>(id, 0));+ id.SetPropertyIndexes(+ index: 0,+ originalValueIndex: 0,+ shadowIndex: -1,+ relationshipIndex: 0,+ storeGenerationIndex: 0);+ id.TypeMapping = IntTypeMapping.Default.Clone(+ comparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ keyComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ providerValueComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "INTEGER"));+ id.SetCurrentValueComparer(new EntryCurrentValueComparer<int>(id));++ var catalogId = runtimeEntityType.AddProperty(+ "CatalogId",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("CatalogId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<CatalogId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ catalogId.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.CatalogId(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.CatalogId(instance) == null);+ catalogId.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.CatalogId(instance) = value;+ return instance;+ });+ catalogId.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.CatalogId(instance) = value;+ return instance;+ });+ catalogId.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.CatalogId(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.CatalogId(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(catalogId, 1),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(catalogId));+ catalogId.SetPropertyIndexes(+ index: 1,+ originalValueIndex: 1,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ catalogId.TypeMapping = SqliteStringTypeMapping.Default;+ catalogId.SetCurrentValueComparer(new EntryCurrentValueComparer<string>(catalogId));++ var constitutiveClass = runtimeEntityType.AddProperty(+ "ConstitutiveClass",+ typeof(MaterialConstitutiveClass),+ propertyInfo: typeof(MaterialEntity).GetProperty("ConstitutiveClass", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<ConstitutiveClass>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ providerPropertyType: typeof(string));+ constitutiveClass.SetGetter(+ MaterialConstitutiveClass (MaterialEntity instance) => MaterialEntityUnsafeAccessors.ConstitutiveClass(instance),+ bool (MaterialEntity instance) => object.Equals(((object)(MaterialEntityUnsafeAccessors.ConstitutiveClass(instance))), ((object)(MaterialConstitutiveClass.LinearElasticIsotropic))));+ constitutiveClass.SetSetter(+ MaterialEntity (MaterialEntity instance, MaterialConstitutiveClass value) =>+ {+ MaterialEntityUnsafeAccessors.ConstitutiveClass(instance) = value;+ return instance;+ });+ constitutiveClass.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, MaterialConstitutiveClass value) =>+ {+ MaterialEntityUnsafeAccessors.ConstitutiveClass(instance) = value;+ return instance;+ });+ constitutiveClass.SetAccessors(+ MaterialConstitutiveClass (IInternalEntry entry) => MaterialEntityUnsafeAccessors.ConstitutiveClass(((MaterialEntity)(entry.Entity))),+ MaterialConstitutiveClass (IInternalEntry entry) => MaterialEntityUnsafeAccessors.ConstitutiveClass(((MaterialEntity)(entry.Entity))),+ MaterialConstitutiveClass (IInternalEntry entry) => entry.ReadOriginalValue<MaterialConstitutiveClass>(constitutiveClass, 2),+ MaterialConstitutiveClass (IInternalEntry entry) => entry.GetCurrentValue<MaterialConstitutiveClass>(constitutiveClass));+ constitutiveClass.SetPropertyIndexes(+ index: 2,+ originalValueIndex: 2,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ constitutiveClass.TypeMapping = SqliteStringTypeMapping.Default.Clone(+ comparer: new ValueComparer<MaterialConstitutiveClass>(+ bool (MaterialConstitutiveClass v1, MaterialConstitutiveClass v2) => object.Equals(((object)(v1)), ((object)(v2))),+ int (MaterialConstitutiveClass v) => ((object)v).GetHashCode(),+ MaterialConstitutiveClass (MaterialConstitutiveClass v) => v),+ keyComparer: new ValueComparer<MaterialConstitutiveClass>(+ bool (MaterialConstitutiveClass v1, MaterialConstitutiveClass v2) => object.Equals(((object)(v1)), ((object)(v2))),+ int (MaterialConstitutiveClass v) => ((object)v).GetHashCode(),+ MaterialConstitutiveClass (MaterialConstitutiveClass v) => v),+ providerValueComparer: new ValueComparer<string>(+ bool (string v1, string v2) => v1 == v2,+ int (string v) => ((object)v).GetHashCode(),+ string (string v) => v),+ converter: new ValueConverter<MaterialConstitutiveClass, string>(+ string (MaterialConstitutiveClass v) => ((object)v).ToString(),+ MaterialConstitutiveClass (string v) => StringEnumConverter<MaterialConstitutiveClass, string, MaterialConstitutiveClass>.ConvertToEnum(v)),+ jsonValueReaderWriter: new JsonConvertedValueReaderWriter<MaterialConstitutiveClass, string>(+ JsonStringReaderWriter.Instance,+ new ValueConverter<MaterialConstitutiveClass, string>(+ string (MaterialConstitutiveClass v) => ((object)v).ToString(),+ MaterialConstitutiveClass (string v) => StringEnumConverter<MaterialConstitutiveClass, string, MaterialConstitutiveClass>.ConvertToEnum(v))));+ constitutiveClass.SetSentinelFromProviderValue("LinearElasticIsotropic");++ var designation = runtimeEntityType.AddProperty(+ "Designation",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("Designation", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Designation>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ designation.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Designation(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Designation(instance) == null);+ designation.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Designation(instance) = value;+ return instance;+ });+ designation.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Designation(instance) = value;+ return instance;+ });+ designation.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Designation(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Designation(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(designation, 3),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(designation));+ designation.SetPropertyIndexes(+ index: 3,+ originalValueIndex: 3,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ designation.TypeMapping = SqliteStringTypeMapping.Default;++ var displayName = runtimeEntityType.AddProperty(+ "DisplayName",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("DisplayName", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<DisplayName>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ displayName.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.DisplayName(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.DisplayName(instance) == null);+ displayName.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.DisplayName(instance) = value;+ return instance;+ });+ displayName.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.DisplayName(instance) = value;+ return instance;+ });+ displayName.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.DisplayName(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.DisplayName(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(displayName, 4),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(displayName));+ displayName.SetPropertyIndexes(+ index: 4,+ originalValueIndex: 4,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ displayName.TypeMapping = SqliteStringTypeMapping.Default;++ var family = runtimeEntityType.AddProperty(+ "Family",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("Family", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Family>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ family.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Family(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Family(instance) == null);+ family.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Family(instance) = value;+ return instance;+ });+ family.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Family(instance) = value;+ return instance;+ });+ family.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Family(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Family(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(family, 5),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(family));+ family.SetPropertyIndexes(+ index: 5,+ originalValueIndex: 5,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ family.TypeMapping = SqliteStringTypeMapping.Default;++ var firmamentPath = runtimeEntityType.AddProperty(+ "FirmamentPath",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("FirmamentPath", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<FirmamentPath>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ firmamentPath.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.FirmamentPath(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.FirmamentPath(instance) == null);+ firmamentPath.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.FirmamentPath(instance) = value;+ return instance;+ });+ firmamentPath.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.FirmamentPath(instance) = value;+ return instance;+ });+ firmamentPath.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.FirmamentPath(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.FirmamentPath(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(firmamentPath, 6),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(firmamentPath));+ firmamentPath.SetPropertyIndexes(+ index: 6,+ originalValueIndex: 6,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ firmamentPath.TypeMapping = SqliteStringTypeMapping.Default;+ firmamentPath.SetCurrentValueComparer(new EntryCurrentValueComparer<string>(firmamentPath));++ var grade = runtimeEntityType.AddProperty(+ "Grade",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("Grade", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Grade>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ nullable: true);+ grade.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Grade(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Grade(instance) == null);+ grade.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Grade(instance) = value;+ return instance;+ });+ grade.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Grade(instance) = value;+ return instance;+ });+ grade.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Grade(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Grade(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(grade, 7),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(grade));+ grade.SetPropertyIndexes(+ index: 7,+ originalValueIndex: 7,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ grade.TypeMapping = SqliteStringTypeMapping.Default;++ var referenceCondition = runtimeEntityType.AddProperty(+ "ReferenceCondition",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("ReferenceCondition", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<ReferenceCondition>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ referenceCondition.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.ReferenceCondition(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.ReferenceCondition(instance) == null);+ referenceCondition.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.ReferenceCondition(instance) = value;+ return instance;+ });+ referenceCondition.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.ReferenceCondition(instance) = value;+ return instance;+ });+ referenceCondition.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.ReferenceCondition(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.ReferenceCondition(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(referenceCondition, 8),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(referenceCondition));+ referenceCondition.SetPropertyIndexes(+ index: 8,+ originalValueIndex: 8,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ referenceCondition.TypeMapping = SqliteStringTypeMapping.Default;++ var stableId = runtimeEntityType.AddProperty(+ "StableId",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("StableId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<StableId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ stableId.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.StableId(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.StableId(instance) == null);+ stableId.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.StableId(instance) = value;+ return instance;+ });+ stableId.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.StableId(instance) = value;+ return instance;+ });+ stableId.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.StableId(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.StableId(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(stableId, 9),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(stableId));+ stableId.SetPropertyIndexes(+ index: 9,+ originalValueIndex: 9,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ stableId.TypeMapping = SqliteStringTypeMapping.Default;+ stableId.SetCurrentValueComparer(new EntryCurrentValueComparer<string>(stableId));++ var standard = runtimeEntityType.AddProperty(+ "Standard",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("Standard", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Standard>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ nullable: true);+ standard.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Standard(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Standard(instance) == null);+ standard.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Standard(instance) = value;+ return instance;+ });+ standard.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Standard(instance) = value;+ return instance;+ });+ standard.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Standard(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Standard(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(standard, 10),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(standard));+ standard.SetPropertyIndexes(+ index: 10,+ originalValueIndex: 10,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ standard.TypeMapping = SqliteStringTypeMapping.Default;++ var temper = runtimeEntityType.AddProperty(+ "Temper",+ typeof(string),+ propertyInfo: typeof(MaterialEntity).GetProperty("Temper", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Temper>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ nullable: true);+ temper.SetGetter(+ string (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Temper(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Temper(instance) == null);+ temper.SetSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Temper(instance) = value;+ return instance;+ });+ temper.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, string value) =>+ {+ MaterialEntityUnsafeAccessors.Temper(instance) = value;+ return instance;+ });+ temper.SetAccessors(+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Temper(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Temper(((MaterialEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(temper, 11),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(temper));+ temper.SetPropertyIndexes(+ index: 11,+ originalValueIndex: 11,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ temper.TypeMapping = SqliteStringTypeMapping.Default;++ var key = runtimeEntityType.AddKey(+ new[] { id });+ runtimeEntityType.SetPrimaryKey(key);++ var index = runtimeEntityType.AddIndex(+ new[] { firmamentPath },+ unique: true);++ var index0 = runtimeEntityType.AddIndex(+ new[] { catalogId, stableId },+ unique: true);++ return runtimeEntityType;+ }++ public static void CreateAnnotations(RuntimeEntityType runtimeEntityType)+ {+ var id = runtimeEntityType.FindProperty("Id");+ var catalogId = runtimeEntityType.FindProperty("CatalogId");+ var constitutiveClass = runtimeEntityType.FindProperty("ConstitutiveClass");+ var designation = runtimeEntityType.FindProperty("Designation");+ var displayName = runtimeEntityType.FindProperty("DisplayName");+ var family = runtimeEntityType.FindProperty("Family");+ var firmamentPath = runtimeEntityType.FindProperty("FirmamentPath");+ var grade = runtimeEntityType.FindProperty("Grade");+ var referenceCondition = runtimeEntityType.FindProperty("ReferenceCondition");+ var stableId = runtimeEntityType.FindProperty("StableId");+ var standard = runtimeEntityType.FindProperty("Standard");+ var temper = runtimeEntityType.FindProperty("Temper");+ var key = runtimeEntityType.FindKey(new[] { id });+ key.SetPrincipalKeyValueFactory(KeyValueFactoryFactory.CreateSimpleNonNullableFactory<int>(key));+ key.SetIdentityMapFactory(IdentityMapFactoryFactory.CreateFactory<int>(key));+ var properties = runtimeEntityType.FindNavigation("Properties");+ runtimeEntityType.SetOriginalValuesFactory(+ ISnapshot (IInternalEntry source) =>+ {+ var structuralType = ((MaterialEntity)(source.Entity));+ return ((ISnapshot)(new Snapshot<int, string, MaterialConstitutiveClass, string, string, string, string, string, string, string, string, string>(((ValueComparer<int>)(((IProperty)id).GetValueComparer())).Snapshot(source.GetCurrentValue<int>(id)), (source.GetCurrentValue<string>(catalogId) == null ? null : ((ValueComparer<string>)(((IProperty)catalogId).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(catalogId))), ((ValueComparer<MaterialConstitutiveClass>)(((IProperty)constitutiveClass).GetValueComparer())).Snapshot(source.GetCurrentValue<MaterialConstitutiveClass>(constitutiveClass)), (source.GetCurrentValue<string>(designation) == null ? null : ((ValueComparer<string>)(((IProperty)designation).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(designation))), (source.GetCurrentValue<string>(displayName) == null ? null : ((ValueComparer<string>)(((IProperty)displayName).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(displayName))), (source.GetCurrentValue<string>(family) == null ? null : ((ValueComparer<string>)(((IProperty)family).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(family))), (source.GetCurrentValue<string>(firmamentPath) == null ? null : ((ValueComparer<string>)(((IProperty)firmamentPath).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(firmamentPath))), (source.GetCurrentValue<string>(grade) == null ? null : ((ValueComparer<string>)(((IProperty)grade).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(grade))), (source.GetCurrentValue<string>(referenceCondition) == null ? null : ((ValueComparer<string>)(((IProperty)referenceCondition).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(referenceCondition))), (source.GetCurrentValue<string>(stableId) == null ? null : ((ValueComparer<string>)(((IProperty)stableId).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(stableId))), (source.GetCurrentValue<string>(standard) == null ? null : ((ValueComparer<string>)(((IProperty)standard).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(standard))), (source.GetCurrentValue<string>(temper) == null ? null : ((ValueComparer<string>)(((IProperty)temper).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(temper))))));+ });+ runtimeEntityType.SetStoreGeneratedValuesFactory(+ ISnapshot () => ((ISnapshot)(new Snapshot<int>(((ValueComparer<int>)(((IProperty)id).GetValueComparer())).Snapshot(default(int))))));+ runtimeEntityType.SetTemporaryValuesFactory(+ ISnapshot (IInternalEntry source) => ((ISnapshot)(new Snapshot<int>(default(int)))));+ runtimeEntityType.SetShadowValuesFactory(+ ISnapshot (IDictionary<string, object> source) => Snapshot.Empty);+ runtimeEntityType.SetEmptyShadowValuesFactory(+ ISnapshot () => Snapshot.Empty);+ runtimeEntityType.SetRelationshipSnapshotFactory(+ ISnapshot (IInternalEntry source) =>+ {+ var structuralType = ((MaterialEntity)(source.Entity));+ return ((ISnapshot)(new Snapshot<int, object>(((ValueComparer<int>)(((IProperty)id).GetKeyValueComparer())).Snapshot(source.GetCurrentValue<int>(id)), SnapshotFactoryFactory.SnapshotCollection(source.GetCurrentValue<ICollection<MaterialPropertyEntity>>(properties)))));+ });+ runtimeEntityType.SetCounts(new PropertyCounts(+ propertyCount: 12,+ navigationCount: 1,+ complexPropertyCount: 0,+ complexCollectionCount: 0,+ originalValueCount: 12,+ shadowCount: 0,+ relationshipCount: 2,+ storeGeneratedCount: 1));+ runtimeEntityType.AddAnnotation("Relational:FunctionName", null);+ runtimeEntityType.AddAnnotation("Relational:Schema", null);+ runtimeEntityType.AddAnnotation("Relational:SqlQuery", null);+ runtimeEntityType.AddAnnotation("Relational:TableName", "Materials");+ runtimeEntityType.AddAnnotation("Relational:ViewName", null);+ runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);++ Customize(runtimeEntityType);+ }++ static partial void Customize(RuntimeEntityType runtimeEntityType);+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialEntityUnsafeAccessors.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialEntityUnsafeAccessors.csnew file mode 100644index 00000000..2f1743b4--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialEntityUnsafeAccessors.cs@@ -0,0 +1,52 @@+// <auto-generated />+using System;+using System.Collections.Generic;+using System.Runtime.CompilerServices;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ public static class MaterialEntityUnsafeAccessors+ {+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]+ public static extern ref int Id(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<CatalogId>k__BackingField")]+ public static extern ref string CatalogId(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ConstitutiveClass>k__BackingField")]+ public static extern ref MaterialConstitutiveClass ConstitutiveClass(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Designation>k__BackingField")]+ public static extern ref string Designation(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<DisplayName>k__BackingField")]+ public static extern ref string DisplayName(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Family>k__BackingField")]+ public static extern ref string Family(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<FirmamentPath>k__BackingField")]+ public static extern ref string FirmamentPath(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Grade>k__BackingField")]+ public static extern ref string Grade(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ReferenceCondition>k__BackingField")]+ public static extern ref string ReferenceCondition(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<StableId>k__BackingField")]+ public static extern ref string StableId(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Standard>k__BackingField")]+ public static extern ref string Standard(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Temper>k__BackingField")]+ public static extern ref string Temper(MaterialEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Properties>k__BackingField")]+ public static extern ref ICollection<MaterialPropertyEntity> Properties(MaterialEntity @this);+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialPropertyEntityEntityType.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialPropertyEntityEntityType.csnew file mode 100644index 00000000..70485fbb--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialPropertyEntityEntityType.cs@@ -0,0 +1,664 @@+// <auto-generated />+using System;+using System.Collections.Generic;+using System.Reflection;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.ChangeTracking;+using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Metadata;+using Microsoft.EntityFrameworkCore.Metadata.Internal;+using Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal;+using Microsoft.EntityFrameworkCore.Storage;+using Microsoft.EntityFrameworkCore.Storage.Json;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ [EntityFrameworkInternal]+ public partial class MaterialPropertyEntityEntityType+ {+ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)+ {+ var runtimeEntityType = model.AddEntityType(+ "Aetheris.Kernel.StandardLibrary.Materials.Database.MaterialPropertyEntity",+ typeof(MaterialPropertyEntity),+ baseEntityType,+ propertyCount: 11,+ navigationCount: 1,+ foreignKeyCount: 1,+ unnamedIndexCount: 1,+ keyCount: 1);++ var id = runtimeEntityType.AddProperty(+ "Id",+ typeof(int),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("Id", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<Id>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ valueGenerated: ValueGenerated.OnAdd,+ afterSaveBehavior: PropertySaveBehavior.Throw,+ sentinel: 0);+ id.SetGetter(+ int (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Id(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Id(instance) == 0);+ id.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, int value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Id(instance) = value;+ return instance;+ });+ id.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, int value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Id(instance) = value;+ return instance;+ });+ id.SetAccessors(+ int (IInternalEntry entry) => (entry.FlaggedAsStoreGenerated(0) ? entry.ReadStoreGeneratedValue<int>(0) : (entry.FlaggedAsTemporary(0) && MaterialPropertyEntityUnsafeAccessors.Id(((MaterialPropertyEntity)(entry.Entity))) == 0 ? entry.ReadTemporaryValue<int>(0) : MaterialPropertyEntityUnsafeAccessors.Id(((MaterialPropertyEntity)(entry.Entity))))),+ int (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Id(((MaterialPropertyEntity)(entry.Entity))),+ int (IInternalEntry entry) => entry.ReadOriginalValue<int>(id, 0),+ int (IInternalEntry entry) => ((InternalEntityEntry)(entry)).ReadRelationshipSnapshotValue<int>(id, 0));+ id.SetPropertyIndexes(+ index: 0,+ originalValueIndex: 0,+ shadowIndex: -1,+ relationshipIndex: 0,+ storeGenerationIndex: 0);+ id.TypeMapping = IntTypeMapping.Default.Clone(+ comparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ keyComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ providerValueComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "INTEGER"));+ id.SetCurrentValueComparer(new EntryCurrentValueComparer<int>(id));++ var authority = runtimeEntityType.AddProperty(+ "Authority",+ typeof(MaterialPropertyAuthority),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("Authority", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<Authority>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ providerPropertyType: typeof(string));+ authority.SetGetter(+ MaterialPropertyAuthority (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Authority(instance),+ bool (MaterialPropertyEntity instance) => object.Equals(((object)(MaterialPropertyEntityUnsafeAccessors.Authority(instance))), ((object)(MaterialPropertyAuthority.ManufacturerTypical))));+ authority.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, MaterialPropertyAuthority value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Authority(instance) = value;+ return instance;+ });+ authority.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, MaterialPropertyAuthority value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Authority(instance) = value;+ return instance;+ });+ authority.SetAccessors(+ MaterialPropertyAuthority (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Authority(((MaterialPropertyEntity)(entry.Entity))),+ MaterialPropertyAuthority (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Authority(((MaterialPropertyEntity)(entry.Entity))),+ MaterialPropertyAuthority (IInternalEntry entry) => entry.ReadOriginalValue<MaterialPropertyAuthority>(authority, 1),+ MaterialPropertyAuthority (IInternalEntry entry) => entry.GetCurrentValue<MaterialPropertyAuthority>(authority));+ authority.SetPropertyIndexes(+ index: 1,+ originalValueIndex: 1,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ authority.TypeMapping = SqliteStringTypeMapping.Default.Clone(+ comparer: new ValueComparer<MaterialPropertyAuthority>(+ bool (MaterialPropertyAuthority v1, MaterialPropertyAuthority v2) => object.Equals(((object)(v1)), ((object)(v2))),+ int (MaterialPropertyAuthority v) => ((object)v).GetHashCode(),+ MaterialPropertyAuthority (MaterialPropertyAuthority v) => v),+ keyComparer: new ValueComparer<MaterialPropertyAuthority>(+ bool (MaterialPropertyAuthority v1, MaterialPropertyAuthority v2) => object.Equals(((object)(v1)), ((object)(v2))),+ int (MaterialPropertyAuthority v) => ((object)v).GetHashCode(),+ MaterialPropertyAuthority (MaterialPropertyAuthority v) => v),+ providerValueComparer: new ValueComparer<string>(+ bool (string v1, string v2) => v1 == v2,+ int (string v) => ((object)v).GetHashCode(),+ string (string v) => v),+ converter: new ValueConverter<MaterialPropertyAuthority, string>(+ string (MaterialPropertyAuthority v) => ((object)v).ToString(),+ MaterialPropertyAuthority (string v) => StringEnumConverter<MaterialPropertyAuthority, string, MaterialPropertyAuthority>.ConvertToEnum(v)),+ jsonValueReaderWriter: new JsonConvertedValueReaderWriter<MaterialPropertyAuthority, string>(+ JsonStringReaderWriter.Instance,+ new ValueConverter<MaterialPropertyAuthority, string>(+ string (MaterialPropertyAuthority v) => ((object)v).ToString(),+ MaterialPropertyAuthority (string v) => StringEnumConverter<MaterialPropertyAuthority, string, MaterialPropertyAuthority>.ConvertToEnum(v))));+ authority.SetSentinelFromProviderValue("ManufacturerTypical");++ var condition = runtimeEntityType.AddProperty(+ "Condition",+ typeof(string),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("Condition", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<Condition>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ condition.SetGetter(+ string (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Condition(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Condition(instance) == null);+ condition.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Condition(instance) = value;+ return instance;+ });+ condition.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Condition(instance) = value;+ return instance;+ });+ condition.SetAccessors(+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Condition(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Condition(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(condition, 2),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(condition));+ condition.SetPropertyIndexes(+ index: 2,+ originalValueIndex: 2,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ condition.TypeMapping = SqliteStringTypeMapping.Default;++ var kind = runtimeEntityType.AddProperty(+ "Kind",+ typeof(MaterialPropertyKind),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("Kind", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<Kind>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ providerPropertyType: typeof(string));+ kind.SetGetter(+ MaterialPropertyKind (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Kind(instance),+ bool (MaterialPropertyEntity instance) => object.Equals(((object)(MaterialPropertyEntityUnsafeAccessors.Kind(instance))), ((object)(MaterialPropertyKind.Density))));+ kind.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, MaterialPropertyKind value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Kind(instance) = value;+ return instance;+ });+ kind.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, MaterialPropertyKind value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Kind(instance) = value;+ return instance;+ });+ kind.SetAccessors(+ MaterialPropertyKind (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Kind(((MaterialPropertyEntity)(entry.Entity))),+ MaterialPropertyKind (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Kind(((MaterialPropertyEntity)(entry.Entity))),+ MaterialPropertyKind (IInternalEntry entry) => entry.ReadOriginalValue<MaterialPropertyKind>(kind, 3),+ MaterialPropertyKind (IInternalEntry entry) => entry.GetCurrentValue<MaterialPropertyKind>(kind));+ kind.SetPropertyIndexes(+ index: 3,+ originalValueIndex: 3,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ kind.TypeMapping = SqliteStringTypeMapping.Default.Clone(+ comparer: new ValueComparer<MaterialPropertyKind>(+ bool (MaterialPropertyKind v1, MaterialPropertyKind v2) => object.Equals(((object)(v1)), ((object)(v2))),+ int (MaterialPropertyKind v) => ((object)v).GetHashCode(),+ MaterialPropertyKind (MaterialPropertyKind v) => v),+ keyComparer: new ValueComparer<MaterialPropertyKind>(+ bool (MaterialPropertyKind v1, MaterialPropertyKind v2) => object.Equals(((object)(v1)), ((object)(v2))),+ int (MaterialPropertyKind v) => ((object)v).GetHashCode(),+ MaterialPropertyKind (MaterialPropertyKind v) => v),+ providerValueComparer: new ValueComparer<string>(+ bool (string v1, string v2) => v1 == v2,+ int (string v) => ((object)v).GetHashCode(),+ string (string v) => v),+ converter: new ValueConverter<MaterialPropertyKind, string>(+ string (MaterialPropertyKind v) => ((object)v).ToString(),+ MaterialPropertyKind (string v) => StringEnumConverter<MaterialPropertyKind, string, MaterialPropertyKind>.ConvertToEnum(v)),+ jsonValueReaderWriter: new JsonConvertedValueReaderWriter<MaterialPropertyKind, string>(+ JsonStringReaderWriter.Instance,+ new ValueConverter<MaterialPropertyKind, string>(+ string (MaterialPropertyKind v) => ((object)v).ToString(),+ MaterialPropertyKind (string v) => StringEnumConverter<MaterialPropertyKind, string, MaterialPropertyKind>.ConvertToEnum(v))));+ kind.SetCurrentValueComparer(new EntryCurrentValueComparer<MaterialPropertyKind>(kind));+ kind.SetSentinelFromProviderValue("Density");++ var materialId = runtimeEntityType.AddProperty(+ "MaterialId",+ typeof(int),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("MaterialId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<MaterialId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ sentinel: 0);+ materialId.SetGetter(+ int (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.MaterialId(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.MaterialId(instance) == 0);+ materialId.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, int value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.MaterialId(instance) = value;+ return instance;+ });+ materialId.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, int value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.MaterialId(instance) = value;+ return instance;+ });+ materialId.SetAccessors(+ int (IInternalEntry entry) => (entry.FlaggedAsStoreGenerated(4) ? entry.ReadStoreGeneratedValue<int>(1) : (entry.FlaggedAsTemporary(4) && MaterialPropertyEntityUnsafeAccessors.MaterialId(((MaterialPropertyEntity)(entry.Entity))) == 0 ? entry.ReadTemporaryValue<int>(1) : MaterialPropertyEntityUnsafeAccessors.MaterialId(((MaterialPropertyEntity)(entry.Entity))))),+ int (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.MaterialId(((MaterialPropertyEntity)(entry.Entity))),+ int (IInternalEntry entry) => entry.ReadOriginalValue<int>(materialId, 4),+ int (IInternalEntry entry) => ((InternalEntityEntry)(entry)).ReadRelationshipSnapshotValue<int>(materialId, 1));+ materialId.SetPropertyIndexes(+ index: 4,+ originalValueIndex: 4,+ shadowIndex: -1,+ relationshipIndex: 1,+ storeGenerationIndex: 1);+ materialId.TypeMapping = IntTypeMapping.Default.Clone(+ comparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ keyComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ providerValueComparer: new ValueComparer<int>(+ bool (int v1, int v2) => v1 == v2,+ int (int v) => v,+ int (int v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "INTEGER"));+ materialId.SetCurrentValueComparer(new EntryCurrentValueComparer<int>(materialId));++ var notes = runtimeEntityType.AddProperty(+ "Notes",+ typeof(string),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("Notes", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<Notes>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ nullable: true);+ notes.SetGetter(+ string (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Notes(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Notes(instance) == null);+ notes.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Notes(instance) = value;+ return instance;+ });+ notes.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Notes(instance) = value;+ return instance;+ });+ notes.SetAccessors(+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Notes(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Notes(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(notes, 5),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(notes));+ notes.SetPropertyIndexes(+ index: 5,+ originalValueIndex: 5,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ notes.TypeMapping = SqliteStringTypeMapping.Default;++ var referenceTemperatureKelvin = runtimeEntityType.AddProperty(+ "ReferenceTemperatureKelvin",+ typeof(double?),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("ReferenceTemperatureKelvin", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<ReferenceTemperatureKelvin>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ nullable: true);+ referenceTemperatureKelvin.SetGetter(+ double? (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.ReferenceTemperatureKelvin(instance),+ bool (MaterialPropertyEntity instance) => !(MaterialPropertyEntityUnsafeAccessors.ReferenceTemperatureKelvin(instance).HasValue));+ referenceTemperatureKelvin.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, double? value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.ReferenceTemperatureKelvin(instance) = value;+ return instance;+ });+ referenceTemperatureKelvin.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, double? value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.ReferenceTemperatureKelvin(instance) = value;+ return instance;+ });+ referenceTemperatureKelvin.SetAccessors(+ double? (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.ReferenceTemperatureKelvin(((MaterialPropertyEntity)(entry.Entity))),+ double? (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.ReferenceTemperatureKelvin(((MaterialPropertyEntity)(entry.Entity))),+ double? (IInternalEntry entry) => entry.ReadOriginalValue<double?>(referenceTemperatureKelvin, 6),+ double? (IInternalEntry entry) => entry.GetCurrentValue<double?>(referenceTemperatureKelvin));+ referenceTemperatureKelvin.SetPropertyIndexes(+ index: 6,+ originalValueIndex: 6,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ referenceTemperatureKelvin.TypeMapping = DoubleTypeMapping.Default.Clone(+ comparer: new ValueComparer<double>(+ bool (double v1, double v2) => v1.Equals(v2),+ int (double v) => ((object)v).GetHashCode(),+ double (double v) => v),+ keyComparer: new ValueComparer<double>(+ bool (double v1, double v2) => v1.Equals(v2),+ int (double v) => ((object)v).GetHashCode(),+ double (double v) => v),+ providerValueComparer: new ValueComparer<double>(+ bool (double v1, double v2) => v1.Equals(v2),+ int (double v) => ((object)v).GetHashCode(),+ double (double v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "REAL"));+ referenceTemperatureKelvin.SetComparer(new NullableValueComparer<double>(referenceTemperatureKelvin.TypeMapping.Comparer));+ referenceTemperatureKelvin.SetKeyComparer(new NullableValueComparer<double>(referenceTemperatureKelvin.TypeMapping.KeyComparer));++ var sourceId = runtimeEntityType.AddProperty(+ "SourceId",+ typeof(string),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("SourceId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<SourceId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ sourceId.SetGetter(+ string (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.SourceId(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.SourceId(instance) == null);+ sourceId.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.SourceId(instance) = value;+ return instance;+ });+ sourceId.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.SourceId(instance) = value;+ return instance;+ });+ sourceId.SetAccessors(+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.SourceId(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.SourceId(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(sourceId, 7),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(sourceId));+ sourceId.SetPropertyIndexes(+ index: 7,+ originalValueIndex: 7,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ sourceId.TypeMapping = SqliteStringTypeMapping.Default;++ var sourceUri = runtimeEntityType.AddProperty(+ "SourceUri",+ typeof(string),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("SourceUri", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<SourceUri>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ sourceUri.SetGetter(+ string (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.SourceUri(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.SourceUri(instance) == null);+ sourceUri.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.SourceUri(instance) = value;+ return instance;+ });+ sourceUri.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.SourceUri(instance) = value;+ return instance;+ });+ sourceUri.SetAccessors(+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.SourceUri(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.SourceUri(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(sourceUri, 8),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(sourceUri));+ sourceUri.SetPropertyIndexes(+ index: 8,+ originalValueIndex: 8,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ sourceUri.TypeMapping = SqliteStringTypeMapping.Default;++ var unitSymbol = runtimeEntityType.AddProperty(+ "UnitSymbol",+ typeof(string),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("UnitSymbol", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<UnitSymbol>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));+ unitSymbol.SetGetter(+ string (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.UnitSymbol(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.UnitSymbol(instance) == null);+ unitSymbol.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.UnitSymbol(instance) = value;+ return instance;+ });+ unitSymbol.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, string value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.UnitSymbol(instance) = value;+ return instance;+ });+ unitSymbol.SetAccessors(+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.UnitSymbol(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.UnitSymbol(((MaterialPropertyEntity)(entry.Entity))),+ string (IInternalEntry entry) => entry.ReadOriginalValue<string>(unitSymbol, 9),+ string (IInternalEntry entry) => entry.GetCurrentValue<string>(unitSymbol));+ unitSymbol.SetPropertyIndexes(+ index: 9,+ originalValueIndex: 9,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ unitSymbol.TypeMapping = SqliteStringTypeMapping.Default;++ var valueSi = runtimeEntityType.AddProperty(+ "ValueSi",+ typeof(double),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("ValueSi", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<ValueSi>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ sentinel: 0.0);+ valueSi.SetGetter(+ double (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.ValueSi(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.ValueSi(instance).Equals(0D));+ valueSi.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, double value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.ValueSi(instance) = value;+ return instance;+ });+ valueSi.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, double value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.ValueSi(instance) = value;+ return instance;+ });+ valueSi.SetAccessors(+ double (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.ValueSi(((MaterialPropertyEntity)(entry.Entity))),+ double (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.ValueSi(((MaterialPropertyEntity)(entry.Entity))),+ double (IInternalEntry entry) => entry.ReadOriginalValue<double>(valueSi, 10),+ double (IInternalEntry entry) => entry.GetCurrentValue<double>(valueSi));+ valueSi.SetPropertyIndexes(+ index: 10,+ originalValueIndex: 10,+ shadowIndex: -1,+ relationshipIndex: -1,+ storeGenerationIndex: -1);+ valueSi.TypeMapping = DoubleTypeMapping.Default.Clone(+ comparer: new ValueComparer<double>(+ bool (double v1, double v2) => v1.Equals(v2),+ int (double v) => ((object)v).GetHashCode(),+ double (double v) => v),+ keyComparer: new ValueComparer<double>(+ bool (double v1, double v2) => v1.Equals(v2),+ int (double v) => ((object)v).GetHashCode(),+ double (double v) => v),+ providerValueComparer: new ValueComparer<double>(+ bool (double v1, double v2) => v1.Equals(v2),+ int (double v) => ((object)v).GetHashCode(),+ double (double v) => v),+ mappingInfo: new RelationalTypeMappingInfo(+ storeTypeName: "REAL"));++ var key = runtimeEntityType.AddKey(+ new[] { id });+ runtimeEntityType.SetPrimaryKey(key);++ var index = runtimeEntityType.AddIndex(+ new[] { materialId, kind },+ unique: true);++ return runtimeEntityType;+ }++ public static RuntimeForeignKey CreateForeignKey1(RuntimeEntityType declaringEntityType, RuntimeEntityType principalEntityType)+ {+ var runtimeForeignKey = declaringEntityType.AddForeignKey(new[] { declaringEntityType.FindProperty("MaterialId") },+ principalEntityType.FindKey(new[] { principalEntityType.FindProperty("Id") }),+ principalEntityType,+ deleteBehavior: DeleteBehavior.Cascade,+ required: true);++ var material = declaringEntityType.AddNavigation("Material",+ runtimeForeignKey,+ onDependent: true,+ typeof(MaterialEntity),+ propertyInfo: typeof(MaterialPropertyEntity).GetProperty("Material", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialPropertyEntity).GetField("<Material>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));++ material.SetGetter(+ MaterialEntity (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Material(instance),+ bool (MaterialPropertyEntity instance) => MaterialPropertyEntityUnsafeAccessors.Material(instance) == null);+ material.SetSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, MaterialEntity value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Material(instance) = value;+ return instance;+ });+ material.SetMaterializationSetter(+ MaterialPropertyEntity (MaterialPropertyEntity instance, MaterialEntity value) =>+ {+ MaterialPropertyEntityUnsafeAccessors.Material(instance) = value;+ return instance;+ });+ material.SetAccessors(+ MaterialEntity (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Material(((MaterialPropertyEntity)(entry.Entity))),+ MaterialEntity (IInternalEntry entry) => MaterialPropertyEntityUnsafeAccessors.Material(((MaterialPropertyEntity)(entry.Entity))),+ null,+ MaterialEntity (IInternalEntry entry) => entry.GetCurrentValue<MaterialEntity>(material));+ material.SetPropertyIndexes(+ index: 0,+ originalValueIndex: -1,+ shadowIndex: -1,+ relationshipIndex: 2,+ storeGenerationIndex: -1);+ var properties = principalEntityType.AddNavigation("Properties",+ runtimeForeignKey,+ onDependent: false,+ typeof(ICollection<MaterialPropertyEntity>),+ propertyInfo: typeof(MaterialEntity).GetProperty("Properties", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),+ fieldInfo: typeof(MaterialEntity).GetField("<Properties>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));++ properties.SetGetter(+ ICollection<MaterialPropertyEntity> (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Properties(instance),+ bool (MaterialEntity instance) => MaterialEntityUnsafeAccessors.Properties(instance) == null);+ properties.SetSetter(+ MaterialEntity (MaterialEntity instance, ICollection<MaterialPropertyEntity> value) =>+ {+ MaterialEntityUnsafeAccessors.Properties(instance) = value;+ return instance;+ });+ properties.SetMaterializationSetter(+ MaterialEntity (MaterialEntity instance, ICollection<MaterialPropertyEntity> value) =>+ {+ MaterialEntityUnsafeAccessors.Properties(instance) = value;+ return instance;+ });+ properties.SetAccessors(+ ICollection<MaterialPropertyEntity> (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Properties(((MaterialEntity)(entry.Entity))),+ ICollection<MaterialPropertyEntity> (IInternalEntry entry) => MaterialEntityUnsafeAccessors.Properties(((MaterialEntity)(entry.Entity))),+ null,+ ICollection<MaterialPropertyEntity> (IInternalEntry entry) => entry.GetCurrentValue<ICollection<MaterialPropertyEntity>>(properties));+ properties.SetPropertyIndexes(+ index: 0,+ originalValueIndex: -1,+ shadowIndex: -1,+ relationshipIndex: 1,+ storeGenerationIndex: -1);+ properties.SetCollectionAccessor<MaterialEntity, ICollection<MaterialPropertyEntity>, MaterialPropertyEntity>(+ ICollection<MaterialPropertyEntity> (MaterialEntity entity) => MaterialEntityUnsafeAccessors.Properties(entity),+ (MaterialEntity entity, ICollection<MaterialPropertyEntity> collection) => MaterialEntityUnsafeAccessors.Properties(entity) = ((ICollection<MaterialPropertyEntity>)(collection)),+ (MaterialEntity entity, ICollection<MaterialPropertyEntity> collection) => MaterialEntityUnsafeAccessors.Properties(entity) = ((ICollection<MaterialPropertyEntity>)(collection)),+ ICollection<MaterialPropertyEntity> (MaterialEntity entity, Action<MaterialEntity, ICollection<MaterialPropertyEntity>> setter) => ClrCollectionAccessorFactory.CreateAndSetHashSet<MaterialEntity, ICollection<MaterialPropertyEntity>, MaterialPropertyEntity>(entity, setter),+ ICollection<MaterialPropertyEntity> () => ((ICollection<MaterialPropertyEntity>)(((ICollection<MaterialPropertyEntity>)(new HashSet<MaterialPropertyEntity>(ReferenceEqualityComparer.Instance))))));+ return runtimeForeignKey;+ }++ public static void CreateAnnotations(RuntimeEntityType runtimeEntityType)+ {+ var id = runtimeEntityType.FindProperty("Id");+ var authority = runtimeEntityType.FindProperty("Authority");+ var condition = runtimeEntityType.FindProperty("Condition");+ var kind = runtimeEntityType.FindProperty("Kind");+ var materialId = runtimeEntityType.FindProperty("MaterialId");+ var notes = runtimeEntityType.FindProperty("Notes");+ var referenceTemperatureKelvin = runtimeEntityType.FindProperty("ReferenceTemperatureKelvin");+ var sourceId = runtimeEntityType.FindProperty("SourceId");+ var sourceUri = runtimeEntityType.FindProperty("SourceUri");+ var unitSymbol = runtimeEntityType.FindProperty("UnitSymbol");+ var valueSi = runtimeEntityType.FindProperty("ValueSi");+ var key = runtimeEntityType.FindKey(new[] { id });+ key.SetPrincipalKeyValueFactory(KeyValueFactoryFactory.CreateSimpleNonNullableFactory<int>(key));+ key.SetIdentityMapFactory(IdentityMapFactoryFactory.CreateFactory<int>(key));+ var material = runtimeEntityType.FindNavigation("Material");+ runtimeEntityType.SetOriginalValuesFactory(+ ISnapshot (IInternalEntry source) =>+ {+ var structuralType = ((MaterialPropertyEntity)(source.Entity));+ return ((ISnapshot)(new Snapshot<int, MaterialPropertyAuthority, string, MaterialPropertyKind, int, string, double?, string, string, string, double>(((ValueComparer<int>)(((IProperty)id).GetValueComparer())).Snapshot(source.GetCurrentValue<int>(id)), ((ValueComparer<MaterialPropertyAuthority>)(((IProperty)authority).GetValueComparer())).Snapshot(source.GetCurrentValue<MaterialPropertyAuthority>(authority)), (source.GetCurrentValue<string>(condition) == null ? null : ((ValueComparer<string>)(((IProperty)condition).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(condition))), ((ValueComparer<MaterialPropertyKind>)(((IProperty)kind).GetValueComparer())).Snapshot(source.GetCurrentValue<MaterialPropertyKind>(kind)), ((ValueComparer<int>)(((IProperty)materialId).GetValueComparer())).Snapshot(source.GetCurrentValue<int>(materialId)), (source.GetCurrentValue<string>(notes) == null ? null : ((ValueComparer<string>)(((IProperty)notes).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(notes))), (source.GetCurrentValue<double?>(referenceTemperatureKelvin) == null ? null : ((ValueComparer<double?>)(((IProperty)referenceTemperatureKelvin).GetValueComparer())).Snapshot(source.GetCurrentValue<double?>(referenceTemperatureKelvin))), (source.GetCurrentValue<string>(sourceId) == null ? null : ((ValueComparer<string>)(((IProperty)sourceId).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(sourceId))), (source.GetCurrentValue<string>(sourceUri) == null ? null : ((ValueComparer<string>)(((IProperty)sourceUri).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(sourceUri))), (source.GetCurrentValue<string>(unitSymbol) == null ? null : ((ValueComparer<string>)(((IProperty)unitSymbol).GetValueComparer())).Snapshot(source.GetCurrentValue<string>(unitSymbol))), ((ValueComparer<double>)(((IProperty)valueSi).GetValueComparer())).Snapshot(source.GetCurrentValue<double>(valueSi)))));+ });+ runtimeEntityType.SetStoreGeneratedValuesFactory(+ ISnapshot () => ((ISnapshot)(new Snapshot<int, int>(((ValueComparer<int>)(((IProperty)id).GetValueComparer())).Snapshot(default(int)), ((ValueComparer<int>)(((IProperty)materialId).GetValueComparer())).Snapshot(default(int))))));+ runtimeEntityType.SetTemporaryValuesFactory(+ ISnapshot (IInternalEntry source) => ((ISnapshot)(new Snapshot<int, int>(default(int), default(int)))));+ runtimeEntityType.SetShadowValuesFactory(+ ISnapshot (IDictionary<string, object> source) => Snapshot.Empty);+ runtimeEntityType.SetEmptyShadowValuesFactory(+ ISnapshot () => Snapshot.Empty);+ runtimeEntityType.SetRelationshipSnapshotFactory(+ ISnapshot (IInternalEntry source) =>+ {+ var structuralType = ((MaterialPropertyEntity)(source.Entity));+ return ((ISnapshot)(new Snapshot<int, int, object>(((ValueComparer<int>)(((IProperty)id).GetKeyValueComparer())).Snapshot(source.GetCurrentValue<int>(id)), ((ValueComparer<int>)(((IProperty)materialId).GetKeyValueComparer())).Snapshot(source.GetCurrentValue<int>(materialId)), source.GetCurrentValue<MaterialEntity>(material))));+ });+ runtimeEntityType.SetCounts(new PropertyCounts(+ propertyCount: 11,+ navigationCount: 1,+ complexPropertyCount: 0,+ complexCollectionCount: 0,+ originalValueCount: 11,+ shadowCount: 0,+ relationshipCount: 3,+ storeGeneratedCount: 2));+ runtimeEntityType.AddAnnotation("Relational:FunctionName", null);+ runtimeEntityType.AddAnnotation("Relational:Schema", null);+ runtimeEntityType.AddAnnotation("Relational:SqlQuery", null);+ runtimeEntityType.AddAnnotation("Relational:TableName", "MaterialProperties");+ runtimeEntityType.AddAnnotation("Relational:ViewName", null);+ runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);++ Customize(runtimeEntityType);+ }++ static partial void Customize(RuntimeEntityType runtimeEntityType);+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialPropertyEntityUnsafeAccessors.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialPropertyEntityUnsafeAccessors.csnew file mode 100644index 00000000..6d85415e--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/CompiledModel/MaterialPropertyEntityUnsafeAccessors.cs@@ -0,0 +1,48 @@+// <auto-generated />+using System;+using System.Runtime.CompilerServices;++#pragma warning disable 219, 612, 618+#nullable disable++namespace Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel+{+ public static class MaterialPropertyEntityUnsafeAccessors+ {+ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]+ public static extern ref int Id(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Authority>k__BackingField")]+ public static extern ref MaterialPropertyAuthority Authority(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Condition>k__BackingField")]+ public static extern ref string Condition(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Kind>k__BackingField")]+ public static extern ref MaterialPropertyKind Kind(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<MaterialId>k__BackingField")]+ public static extern ref int MaterialId(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Notes>k__BackingField")]+ public static extern ref string Notes(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ReferenceTemperatureKelvin>k__BackingField")]+ public static extern ref double? ReferenceTemperatureKelvin(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SourceId>k__BackingField")]+ public static extern ref string SourceId(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<SourceUri>k__BackingField")]+ public static extern ref string SourceUri(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<UnitSymbol>k__BackingField")]+ public static extern ref string UnitSymbol(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<ValueSi>k__BackingField")]+ public static extern ref double ValueSi(MaterialPropertyEntity @this);++ [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Material>k__BackingField")]+ public static extern ref MaterialEntity Material(MaterialPropertyEntity @this);+ }+}diff --git a/Aetheris.Kernel.StandardLibrary/Materials/Database/MaterialEntities.cs b/Aetheris.Kernel.StandardLibrary/Materials/Database/MaterialEntities.csindex cac7b8cf..8cfccfe4 100644--- a/Aetheris.Kernel.StandardLibrary/Materials/Database/MaterialEntities.cs+++ b/Aetheris.Kernel.StandardLibrary/Materials/Database/MaterialEntities.cs@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;namespace Aetheris.Kernel.StandardLibrary.Materials.Database;-public sealed class MaterialEntity+public class MaterialEntity{public int Id { get; set; }public required string CatalogId { get; set; }@@ -19,7 +19,7 @@ public sealed class MaterialEntitypublic ICollection<MaterialPropertyEntity> Properties { get; } = [];}-public sealed class MaterialPropertyEntity+public class MaterialPropertyEntity{public int Id { get; set; }public int MaterialId { get; set; }@@ -35,7 +35,7 @@ public sealed class MaterialPropertyEntitypublic string? Notes { get; set; }}-public sealed class MaterialCatalogMetadataEntity+public class MaterialCatalogMetadataEntity{public int Id { get; set; }public int SchemaVersion { get; set; }diff --git a/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs b/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.csindex 790ffcdf..59c1d0e5 100644--- a/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs+++ b/Aetheris.Kernel.StandardLibrary/Materials/MaterialCatalog.cs@@ -1,4 +1,5 @@using Aetheris.Kernel.StandardLibrary.Materials.Database;+using Aetheris.Kernel.StandardLibrary.Materials.Database.CompiledModel;using Microsoft.EntityFrameworkCore;namespace Aetheris.Kernel.StandardLibrary.Materials;@@ -16,7 +17,10 @@ public sealed class MaterialCatalog : IDisposablepublic MaterialCatalog(string databasePath){var fullPath = Path.GetFullPath(databasePath);- var options = new DbContextOptionsBuilder<MaterialCatalogDbContext>().UseSqlite($"Data Source={fullPath};Mode=ReadOnly;Pooling=False").Options;+ var options = new DbContextOptionsBuilder<MaterialCatalogDbContext>()+ .UseSqlite($"Data Source={fullPath};Mode=ReadOnly;Pooling=False")+ .UseModel(MaterialCatalogDbContextModel.Instance)+ .Options;database = new(options);}@@ -40,20 +44,29 @@ public sealed class MaterialCatalog : IDisposablepublic ResolvedMaterial? GetById(string catalogId, string stableId){- var entity = database.Materials.AsNoTracking().Include(x => x.Properties).SingleOrDefault(x => x.CatalogId == catalogId && x.StableId == stableId);+ var entity = LoadAll().SingleOrDefault(x => x.CatalogId == catalogId && x.StableId == stableId);return entity is null ? null : Map(entity);}- public IReadOnlyList<ResolvedMaterial> FindByDesignation(string designation) => database.Materials.AsNoTracking().Include(x => x.Properties)+ public IReadOnlyList<ResolvedMaterial> FindByDesignation(string designation) => LoadAll().Where(x => x.Designation == designation || x.Grade == designation)- .OrderBy(x => x.StableId).AsEnumerable().Select(Map).ToArray();+ .OrderBy(x => x.StableId).Select(Map).ToArray();- internal IReadOnlyList<ResolvedMaterial> FindByReference(string reference) => database.Materials.AsNoTracking().Include(x => x.Properties)+ internal IReadOnlyList<ResolvedMaterial> FindByReference(string reference) => LoadAll().Where(x => x.FirmamentPath == reference || x.StableId == reference || (x.CatalogId + ":" + x.StableId) == reference)- .OrderBy(x => x.StableId).AsEnumerable().Select(Map).ToArray();+ .OrderBy(x => x.StableId).Select(Map).ToArray();public void Dispose() => database.Dispose();+ // The standard catalog is deliberately small and immutable. Loading its+ // bounded row set through one parameter-free EF query lets NativeAOT use+ // EF's generated query interceptor; identity filtering remains ordinary+ // deterministic in-memory comparison over database-derived entities.+ private MaterialEntity[] LoadAll() => database.Materials.AsNoTracking()+ .Include(x => x.Properties)+ .OrderBy(x => x.StableId)+ .ToArray();+private static ResolvedMaterial Map(MaterialEntity entity){var validationErrors = MaterialDataValidator.Validate([entity]);@@ -107,7 +120,10 @@ public static class MaterialCatalogDatabasevar fullPath = Path.GetFullPath(databasePath);Directory.CreateDirectory(Path.GetDirectoryName(fullPath)!);if (File.Exists(fullPath)) File.Delete(fullPath);- var options = new DbContextOptionsBuilder<MaterialCatalogDbContext>().UseSqlite($"Data Source={fullPath};Pooling=False").Options;+ var options = new DbContextOptionsBuilder<MaterialCatalogDbContext>()+ .UseSqlite($"Data Source={fullPath};Pooling=False")+ .UseModel(MaterialCatalogDbContextModel.Instance)+ .Options;using var database = new MaterialCatalogDbContext(options);database.Database.EnsureCreated();var seed = MaterialSeedData.Create();diff --git a/Aetheris.Kernel.StandardLibrary/build/Aetheris.Kernel.StandardLibrary.targets b/Aetheris.Kernel.StandardLibrary/build/Aetheris.Kernel.StandardLibrary.targetsnew file mode 100644index 00000000..82f681fd--- /dev/null+++ b/Aetheris.Kernel.StandardLibrary/build/Aetheris.Kernel.StandardLibrary.targets@@ -0,0 +1,21 @@+<Project>+ <PropertyGroup>+ <_AetherisMaterialCatalog>$(MSBuildThisFileDirectory)..\contentFiles\any\any\Materials\aetheris-materials-x1.sqlite</_AetherisMaterialCatalog>+ </PropertyGroup>++ <Target Name="CopyAetherisMaterialCatalogToOutput"+ AfterTargets="Build"+ Condition="Exists('$(_AetherisMaterialCatalog)')">+ <Copy SourceFiles="$(_AetherisMaterialCatalog)"+ DestinationFolder="$(TargetDir)Materials"+ SkipUnchangedFiles="true" />+ </Target>++ <Target Name="CopyAetherisMaterialCatalogToPublish"+ AfterTargets="Publish"+ Condition="Exists('$(_AetherisMaterialCatalog)') and '$(PublishDir)' != ''">+ <Copy SourceFiles="$(_AetherisMaterialCatalog)"+ DestinationFolder="$(PublishDir)Materials"+ SkipUnchangedFiles="true" />+ </Target>+</Project>diff --git a/Aetheris.slnx b/Aetheris.slnxindex 97ea5369..4b067fe2 100644--- a/Aetheris.slnx+++ b/Aetheris.slnx@@ -64,7 +64,5 @@<Project Path="Aetheris.Kernel.Core.Tests/Aetheris.Kernel.Core.Tests.csproj" /><Project Path="tests/Aetheris.TestForgePack/Aetheris.TestForgePack.csproj" /><Project Path="tests/Aetheris.TestForgePack.Duplicate/Aetheris.TestForgePack.Duplicate.csproj" />- <Project Path="demos/Aetheris.PmiInjectionDemo/Aetheris.PmiInjectionDemo.csproj">- <Build Solution="Debug|*" Project="false" />- </Project>+ <Project Path="demos/Aetheris.PmiInjectionDemo/Aetheris.PmiInjectionDemo.csproj" /></Solution>diff --git a/Directory.Build.props b/Directory.Build.propsindex c178db35..f84e1e3e 100644--- a/Directory.Build.props+++ b/Directory.Build.props@@ -1,9 +1,10 @@<Project><PropertyGroup>- <Version>2.0.0-preview.2</Version>+ <Version>2.0.0-preview.3</Version><AssemblyVersion>2.0.0.0</AssemblyVersion><FileVersion>2.0.0.0</FileVersion>- <InformationalVersion>2.0.0-preview.2</InformationalVersion>+ <InformationalVersion>2.0.0-preview.3</InformationalVersion>+ <PathMap>$(MSBuildThisFileDirectory)=/_/Aetheris/</PathMap><TreatWarningsAsErrors>false</TreatWarningsAsErrors><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings>@@ -15,7 +16,7 @@<RepositoryUrl Condition="'$(RepositoryUrl)' == ''">https://github.com/yuechen-li-dev/Aetheris</RepositoryUrl><RepositoryType Condition="'$(RepositoryType)' == ''">git</RepositoryType><PackageTags Condition="'$(PackageTags)' == ''">cad;firmament;step;ap242;geometry;engineering</PackageTags>- <PackageReleaseNotes Condition="'$(PackageReleaseNotes)' == ''">Aetheris 2.0.0-preview.2 public library package.</PackageReleaseNotes>+ <PackageReleaseNotes Condition="'$(PackageReleaseNotes)' == ''">Aetheris 2.0.0-preview.3 public library package.</PackageReleaseNotes><PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance><PublishRepositoryUrl>true</PublishRepositoryUrl><PackageReadmeFile Condition="'$(PackageReadmeFile)' == '' and '$(MSBuildProjectName)' != 'Aetheris.CLI'">Aetheris.Libraries.README.md</PackageReadmeFile>diff --git a/README.md b/README.mdindex df1d2610..de5859a8 100644--- a/README.md+++ b/README.md@@ -1,11 +1,16 @@-# Aetheris 2.0.0-preview.2 + Firmament V2--> The public Preview 2 language-manual source is maintained in the sibling+# Aetheris 2.0.0-preview.3 + Firmament V2++> Aetheris is under feature freeze for the `2.0.0-preview.3` release candidate.+> This milestone accepts correctness, packaging, diagnostics, documentation,+> cross-platform, NativeAOT, determinism, and other release-hardening fixes to+> existing behavior; new feature families are deferred until after Preview 3.+>+> The public language-manual source is maintained in the sibling> `yuechen-li-dev.github.io` repository at `src/aetheris` and published under> `/aetheris/`. Documentation here includes architecture, implementation-> evidence, and historical milestone records; the authoritative frozen support-> contract is `docs/preview2/feature-manifest.json` and the release notes in-> `docs/release/2.0.0-preview.2-notes.md`.+> evidence, and historical milestone records. The Preview 2 support contract+> remains at `docs/preview2/feature-manifest.json`; Preview 3 release topology+> and qualification evidence are recorded in `docs/release/PREVIEW3-HARDEN-A1.md`.Firmament is a deterministic DSL for generating CAD geometry (STEP AP242) via Aetheris.@@ -53,20 +58,25 @@ parameters and are erased before geometry AIR. A Table is not a runtimedataframe, SQL surface, or spreadsheet import format. See[the M1 language note](docs/preview2/firmament-tables-with-m1.md).-## Preview 2 release+## Preview 3 release candidate-Aetheris 2.0.0-preview.2 is available as a complete Windows x64 bundle and as-the `Aetheris.CLI` .NET global tool. Download the bundle (including Cadmata)-from the [GitHub Release](https://github.com/yuechen-li-dev/Aetheris/releases/tag/v2.0.0-preview.2),-or install the CLI with:+Aetheris `2.0.0-preview.3` is qualified for Windows x64 as a release bundle,+the `Aetheris.CLI` .NET global tool, public .NET integration packages, and a+standalone Forge Host Protocol v1 executable. After publication, install the+CLI with:```bashdotnet tool install --global Aetheris.CLI --prerelease```The NuGet tool does not include Cadmata; use the Windows bundle for `aetheris view`.-The public manual, installation guidance, support boundary, and Preview 2-limitations are at [yuechen-li-dev.github.io/aetheris](https://yuechen-li-dev.github.io/aetheris/).+The public manual and installation guidance are at+[yuechen-li-dev.github.io/aetheris](https://yuechen-li-dev.github.io/aetheris/).++Maintainer release builds require the .NET 10 SDK, the Windows NativeAOT C+++toolchain, and TSPack. Cadmata and the Firmament VS Code extension are restored+and built from their committed `manifest.tsx` and `ts-lock.toml` files. Do not+substitute npm install/ci or generate a `package-lock.json` for either workspace.## What works today@@ -174,3 +184,19 @@ Use `Aetheris.slnx` as the only solution entrypoint. For legacy Firmament V1/Fri## Notes- The repository still contains broader Aetheris server/client scaffolding; the Firmament + CLI paths above are the primary deterministic kernel entry points.++## License and acknowledgments++Aetheris source code is licensed under the GNU Affero General Public License+v3.0 (`AGPL-3.0`), except for third-party assets distributed with the+repository, which retain their respective licenses and attribution.+Alternative licensing is available on request. See [LICENSE](LICENSE) and+[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).++Special thanks to the National Institute of Standards and Technology (NIST)+for making available the STEP AP242 test models used during development and+validation. The project's STEP, PMI, Sheet Metal, and reconstruction work+would not have been possible in its present form without those models. The+files retain their original NIST project descriptions and filenames; this+acknowledgment does not imply NIST endorsement, authorship of Aetheris, or+application of the Aetheris license to the models.diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdnew file mode 100644index 00000000..5a81411b--- /dev/null+++ b/THIRD_PARTY_NOTICES.md@@ -0,0 +1,41 @@+# Third-party notices and data provenance++Aetheris source code is licensed separately under the GNU Affero General+Public License v3.0 (`AGPL-3.0`). The assets below retain their respective+licenses, terms, and provenance and are not relicensed as Aetheris source code.++## Stanford Bunny++The reconstructed Bunny evidence under+`docs/geometry/artifacts/bunny-m4/` derives from the Stanford Bunny+`bun_zipper.ply`, credited to the Stanford University Computer Graphics+Laboratory. The repository's existing provenance record states that Stanford+permits free mirroring and redistribution with acknowledgment and that+commercial use requires Stanford's permission. The dataset terms and original+model are linked from the preserved provenance record:+`docs/geometry/artifacts/bunny-m4/README.md`.++The original Stanford Bunny archive/model is not bundled in this repository;+the M4 directory contains Aetheris-generated derived evidence. Those derived+assets remain subject to the recorded Stanford dataset terms.++## NIST STEP AP242 test models++The STEP files under `testdata/step242/nist/` retain their original filenames+and identify themselves in their STEP headers as originating from the NIST MBE+PMI Validation and Conformance Testing Project. One preserved copy is also+distributed with the PMI injection demo at+`demos/Aetheris.PmiInjectionDemo/assets/nist_ftc_11_asme1_ap242-e2.stp`; its+path-level provenance is documented in that demo's `README.md`.++These test models are reference/test data made available by the National+Institute of Standards and Technology. NIST does not endorse Aetheris, no NIST+code is represented as part of Aetheris, and the models are not represented as+AGPL-licensed or authored by Aetheris.++## Other dependencies++NuGet dependencies and JavaScript dependencies resolved by TSPack are restored+from their respective package feeds and retain the licenses and notices+supplied by their authors. This file does not attempt to replace the dependency+metadata carried by those ecosystems.diff --git a/aetheris.client/manifest.tsx b/aetheris.client/manifest.tsxindex 2cebdfd0..928f9cdc 100644--- a/aetheris.client/manifest.tsx+++ b/aetheris.client/manifest.tsx@@ -82,9 +82,9 @@ export default define(<Workspace name="aetheris-cadmata" runtime="nodejs"><Packagename="aetheris.client"- version="0.0.0-preview.2"+ version="2.0.0-preview.3"kind="app"- license="AGPL-3.0-or-later"+ license="AGPL-3.0-only"dependencies={{values: [deps.react,diff --git a/aetheris.client/package.json b/aetheris.client/package.jsonindex 71eb63b3..91a1e897 100644--- a/aetheris.client/package.json+++ b/aetheris.client/package.json@@ -1,7 +1,7 @@{"name": "aetheris.client","private": true,- "version": "0.0.0",+ "version": "2.0.0-preview.3","type": "module","scripts": {"dev": "vite",diff --git a/aetheris.client/src/index.css b/aetheris.client/src/index.cssindex 59d51bfc..bfe1c5fd 100644--- a/aetheris.client/src/index.css+++ b/aetheris.client/src/index.css@@ -1,5 +1,3 @@-@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");-@tailwind base;@tailwind components;@tailwind utilities;diff --git a/artifacts/release/preview1-capabilities.json b/artifacts/release/preview1-capabilities.jsonindex 59c50e86..2bf638d7 100644--- a/artifacts/release/preview1-capabilities.json+++ b/artifacts/release/preview1-capabilities.json@@ -34,7 +34,7 @@{"id":"match", "status":"Experimental", "scope":"Bounded template-expansion arm selection only; no runtime control flow.", "fixturePaths":["demos/template-m4b-standard.firmament"], "knownLimits":["No general runtime programming or arbitrary expression evaluation"]},{"id":"require", "status":"SupportedBounded", "scope":"Static comparisons plus named semantic hole-diameter constraints used by projected PMI.", "fixturePaths":["fixtures/FirmamentV2/Canonical/valid/record-array-pattern-holes.firmament", "fixtures/FirmamentV2/Canonical/valid/pmi-projected-hole-diameter.firmament"], "diagnostics":["firmament-v2-pmi-projection-unknown-require"]},{"id":"assert-volume", "status":"SupportedBounded", "scope":"Literal Expected/Tolerance mm^3, semantic body target, optional Note; build reimports STEP and emits JSON result.", "fixturePaths":["fixtures/FirmamentV2/Canonical/valid/bare-box.firmament", "fixtures/FirmamentV2/Canonical/valid/profile-straight-edge-fillet-top.firmament"], "diagnostics":["firmament-v2-assert-volume-failed", "firmament-v2-assert-volume-measurement-unavailable"]},- {"id":"pmi-manual-and-projected", "status":"SupportedBounded", "scope":"Datum and HoleDiameter; explicit validated Require From/As projection; no inferred projection.", "fixturePaths":["fixtures/FirmamentV2/Canonical/valid/box-hole-pmi.firmament", "fixtures/FirmamentV2/Canonical/valid/pmi-projected-hole-diameter.firmament", "fixtures/FirmamentV2/Canonical/valid/pmi-manual-vs-projected-equivalence.firmament"], "stepArtifacts":["artifacts/pmi-projected-hole-diameter.step"], "diagnostics":["firmament-v2-pmi-projected-field-must-not-override-source-constraint", "firmament-v2-pmi-projection-unknown-require"]},+ {"id":"pmi-manual-and-projected", "status":"SupportedBounded", "scope":"Datum and HoleDiameter; explicit validated Require From/As projection; no inferred projection.", "fixturePaths":["fixtures/FirmamentV2/Canonical/valid/box-hole-pmi.firmament", "fixtures/FirmamentV2/Canonical/valid/pmi-projected-hole-diameter.firmament", "fixtures/FirmamentV2/Canonical/valid/pmi-manual-vs-projected-equivalence.firmament"], "stepArtifacts":["artifacts/release/interop/pmi-projected-hole.step"], "diagnostics":["firmament-v2-pmi-projected-field-must-not-override-source-constraint", "firmament-v2-pmi-projection-unknown-require"]},{"id":"inline-step-recognize-replace", "status":"SupportedBounded", "scope":"Canonical Aetheris AP242 import, HoleShaft/DatumPlane recognition, sequential face IDs, ThroughAll shaft replacement only.", "fixturePaths":["fixtures/FirmamentV2/Canonical/valid/inline-step-recognize-replace.firmament"], "diagnostics":["firmament-inline-step-requires-aetheris-canonical-step"]}],"edgeFinish": {diff --git a/docs/forge/protocol-v1.md b/docs/forge/protocol-v1.mdindex a241b022..b7418ae3 100644--- a/docs/forge/protocol-v1.md+++ b/docs/forge/protocol-v1.md@@ -59,7 +59,7 @@ No unit or constraint semantics live in clients. For example, `"12 kg"` transpor"protocolVersion": 1,"template": "Standard.SheetMetal.ElectronicsEnclosure","templateVersion": "1+b1ab02987f0a",- "aetherisVersion": "2.0.0-preview.2+...",+ "aetherisVersion": "2.0.0-preview.3+...","specialization": "template:94546352d5d67afa"},"diagnostics": [],diff --git a/docs/release/Aetheris.CLI.README.md b/docs/release/Aetheris.CLI.README.mdindex 42b6d631..b914c8cf 100644--- a/docs/release/Aetheris.CLI.README.md+++ b/docs/release/Aetheris.CLI.README.md@@ -9,11 +9,14 @@ aetheris --help```The tool supports validation, STEP build, inspection, analysis, and verification-from Firmament source. It requires the .NET 10 runtime.+from Firmament source. It requires the .NET 10 runtime. Aetheris is licensed+under the GNU Affero General Public License v3.0 (`AGPL-3.0`); third-party+assets retain their respective licenses and provenance. Alternative licensing+is available on request.`aetheris view` needs Cadmata. The NuGet global tool does not bundle the viewer;download the Windows bundle from the GitHub release for package-relative Cadmatadiscovery and the complete desktop experience.See the [Aetheris manual](https://yuechen-li-dev.github.io/aetheris/) for the-supported Firmament surface and Preview 2 limitations.+supported Firmament surface and Preview 3 limitations.diff --git a/docs/release/Aetheris.Libraries.README.md b/docs/release/Aetheris.Libraries.README.mdindex 4b58e633..2204d4ca 100644--- a/docs/release/Aetheris.Libraries.README.md+++ b/docs/release/Aetheris.Libraries.README.md@@ -15,5 +15,8 @@ KernelSDK extensions are Safe by default at the Aetheris capability boundary.Extensions declaring `UNSAFE` require explicit host consent. Because extensionsexecute in-process, this API policy is not a cryptographic CLR sandbox.-Preview 2 targets .NET 10. Documentation and examples are available at+Preview 3 targets .NET 10. Aetheris is licensed under the GNU Affero General+Public License v3.0 (`AGPL-3.0`); third-party assets retain their respective+licenses and provenance. Alternative licensing is available on request.+Documentation and examples are available at<https://yuechen-li-dev.github.io/aetheris/>.diff --git a/docs/release/PREVIEW3-HARDEN-A1.md b/docs/release/PREVIEW3-HARDEN-A1.mdnew file mode 100644index 00000000..e53c4610--- /dev/null+++ b/docs/release/PREVIEW3-HARDEN-A1.md@@ -0,0 +1,239 @@+# PREVIEW3-HARDEN-A1 — release topology and qualification++Status: qualified on 2026-08-16 for `2.0.0-preview.3` on Windows x64.++This is a feature-freeze milestone. Only corrections, packaging, diagnostics,+documentation, portability, NativeAOT, determinism, and tests for existing+behavior are in scope. New geometry, Sheet Metal, FEA, Firmament, Forge,+Cadmata, physics, and interop feature families remain deferred.++## Release topology++```text+Public .NET packages+ Aetheris.Kernel.Core Aetheris.Modules+ Aetheris.Geometry Aetheris.Semantics+ Aetheris.Forge Aetheris.Collaboration+ Aetheris.Kernel.StandardLibrary Aetheris.Continuum+ Aetheris.Surfacing Aetheris.Piping+ Aetheris.SheetMetal Aetheris.Modules.BuiltIn+ Aetheris.Kernel.Firmament Aetheris.FEA+ Aetheris.Forge.Host Aetheris.Forge.KernelSDK++Executables+ Aetheris.CLI global-tool package and self-contained win-x64 executable+ Aetheris.Forge.Host NativeAOT win-x64 executable (Protocol v1)+ Aetheris.Server/Cadmata self-contained win-x64 host++Client/editor+ aetheris.client Cadmata production bundle, built from manifest.tsx + ts-lock.toml+ aetheris-firmament VS Code VSIX, built from manifest.tsx + ts-lock.toml++Runtime assets+ Aetheris.Kernel.StandardLibrary/Materials/Database/aetheris-materials-x1.sqlite+ SQLite native runtime supplied through SQLitePCLRaw+ Cadmata static web assets under the published server wwwroot++Samples/reference data+ testdata/firmament/examples and testdata/firmament/exports+ samples/forge-interop-x1 foreign-language clients+ samples/Aetheris.Samples.DatabaseDrivenCad+ testdata/step242/nist reference models+ docs/geometry/artifacts/bunny-m4 derived Stanford Bunny evidence++Licensing/provenance+ LICENSE (Aetheris code: AGPL-3.0)+ THIRD_PARTY_NOTICES.md (bundled/reference assets retain their provenance)+```++`Aetheris.Reconstruction`, `Aetheris.Firmament.FrictionLab`, server projects,+demos, samples, tests, and development tools are not independent public library+packages. Reconstruction and FrictionLab may be implementation dependencies of+the distributed executables.++Build prerequisites are the .NET 10 SDK, the Windows x64 C++ toolchain required+by .NET NativeAOT, and TSPack. Cadmata and the VS Code extension are TSPack+workspaces. Their committed `ts-lock.toml` files are authoritative; release+qualification does not invoke npm directly or introduce `package-lock.json`.++## Package inventory++| Package/artifact | Version | Role | Qualified |+| --- | --- | --- | --- |+| `Aetheris.Kernel.Core` | 2.0.0-preview.3 | exact kernel, BRep, STEP | Yes |+| `Aetheris.Modules` | 2.0.0-preview.3 | module contracts | Yes |+| `Aetheris.Geometry` | 2.0.0-preview.3 | geometry API | Yes |+| `Aetheris.Semantics` | 2.0.0-preview.3 | semantic model | Yes |+| `Aetheris.Forge` | 2.0.0-preview.3 | Forge abstractions | Yes |+| `Aetheris.Collaboration` | 2.0.0-preview.3 | collaboration model | Yes |+| `Aetheris.Kernel.StandardLibrary` | 2.0.0-preview.3 | standard library and material catalog | Yes |+| `Aetheris.Continuum` | 2.0.0-preview.3 | bounded continuum infrastructure | Yes |+| `Aetheris.Surfacing` | 2.0.0-preview.3 | surfacing | Yes |+| `Aetheris.Piping` | 2.0.0-preview.3 | piping | Yes |+| `Aetheris.SheetMetal` | 2.0.0-preview.3 | Sheet Metal | Yes |+| `Aetheris.Modules.BuiltIn` | 2.0.0-preview.3 | built-in modules | Yes |+| `Aetheris.Kernel.Firmament` | 2.0.0-preview.3 | Firmament compiler/runtime | Yes |+| `Aetheris.FEA` | 2.0.0-preview.3 | existing FEA analysis | Yes |+| `Aetheris.Forge.Host` | 2.0.0-preview.3 | host SDK/package | Yes |+| `Aetheris.Forge.KernelSDK` | 2.0.0-preview.3 | Forge kernel SDK | Yes |+| `Aetheris.CLI` | 2.0.0-preview.3 | .NET tool and bundled CLI | Yes |+| `Aetheris-2.0.0-preview.3-win-x64.zip` | 2.0.0-preview.3 | Windows product bundle | Yes |+| `aetheris-firmament` VSIX | 0.3.0-preview.3 | editor integration | Yes |++Package inspection found one expected `lib/net10.0` assembly and the package+README in every public library package, no PDBs, and no absolute developer path+in package contents or metadata. Dependencies use the same Preview 3 version.+The Standard Library package additionally contains the catalog and a+`buildTransitive` target. `Aetheris.CLI` is packaged separately as a .NET tool.++## Runtime assets++The 49,152-byte SQLite catalog is checked in at+`Aetheris.Kernel.StandardLibrary/Materials/Database/aetheris-materials-x1.sqlite`.+The Standard Library NuGet copies it into `contentFiles` and uses+`buildTransitive/Aetheris.Kernel.StandardLibrary.targets` to copy it to a+consumer's output. Published applications copy it beside their executable.+`MaterialCatalog` checks the application base directory, so neither execution+mode requires a checkout or source-relative fallback. The compiled EF model and+parameter-free generated query make the read path viable under NativeAOT; the+SQLite data is not replaced by hardcoded records.++The external NuGet consumer and the external NativeAOT material consumer both+resolved `Standard.Materials.Aluminum.5052_H32` from that packaged database.+Catalog regeneration is byte-for-byte deterministic.++## License state++- Aetheris code: GNU Affero General Public License v3.0 (`AGPL-3.0`), recorded in `LICENSE`, the root README, NuGet metadata, Cadmata metadata, and VSIX metadata.+- Alternative licensing: available on request.+- Third-party assets: retain their respective licenses, terms, attribution, and provenance; see `THIRD_PARTY_NOTICES.md` and the asset-local records it links.++The Stanford Bunny entry preserves the existing Stanford provenance statement+and identifies the repository content as generated evidence rather than the+original model archive.++## NIST acknowledgment++The root README visibly thanks NIST for making the STEP AP242 test models+available and explains their role in STEP, PMI, Sheet Metal, and reconstruction+validation. `THIRD_PARTY_NOTICES.md` points to `testdata/step242/nist` and the+PMI demo copy, and explicitly avoids any implication of endorsement, Aetheris+authorship, inclusion of NIST code, or AGPL relicensing of the models.++## NativeAOT matrix++| RID | Publish | Runtime smoke | Notes |+| --- | --- | --- | --- |+| `win-x64` | Pass | Pass | Forge Host NativeAOT; 8,821,760-byte executable |++No other RID is claimed for Preview 3. The published NativeAOT host ran outside+the repository and completed `info`, `list`, `describe`, and `invoke`. It+reported Aetheris `2.0.0-preview.3` (plus Git commit build metadata) and Forge+Host Protocol `1`, discovered five+real templates, and invoked the release-style enclosure witness. STEP, flat+STEP, SVG, structured diagnostics, and manifest output were produced without+source fixtures or development configuration.++## CLI and Cadmata evidence++The self-contained CLI was copied outside the repository and exercised for+version reporting, Firmament validation/build, STEP inspection, a Sheet Metal+material coupon, an FEA solve using 5052-H32, artifact validation, and missing+file behavior. The packaged .NET tool was also installed into an isolated tool+directory. Missing input returned exit code 1 with a diagnostic.++Cadmata was qualified only through TSPack: sync, lock/policy check, typecheck,+81 tests, production build, and lint all passed. The production bundle contains+seven files (1,496,068 bytes). Scans found no source maps, secrets, localhost+URLs, or developer absolute paths. Existing model loading, picking, semantic+PMI filters/callouts, and result infrastructure are covered by the passing+client tests; this pass added no client features.++The VS Code workspace was likewise qualified through TSPack: typecheck, 13+tests, production bundle, and VSIX package all passed.++## Clean consumer evidence++A clean source snapshot was assembled outside the checkout from only Git-visible+source files, with no `bin`, `obj`, `node_modules`, generated package directory,+or npm lockfile. It restored and built Release, ran the full serial .NET suite,+packed all public libraries, published the CLI and NativeAOT host, and ran the+TSPack client checks from the committed `ts-lock.toml`.++An independent temporary `net10.0` console project consumed the generated+NuGet files through a directory feed (no project references), invoked a real+Firmament template, loaded the standard material, and inspected the generated+artifact. A Python client under a different temporary directory spoke JSONL to+the published NativeAOT Forge Host and completed all four Protocol v1 verbs.++## Determinism evidence++Representative SHA-256 values established for Preview 3 are:++| Output | SHA-256 |+| --- | --- |+| Standard material SQLite catalog | `10180ac314b35c9b0f6b7b5fd415779cc05d1ab96ed3e71ab4da05d94e6d048e` |+| Enclosure STEP | `114cd7c0c6a8a364b2943cc955a12d8a96b576a187dfc1957ea9f769296872be` |+| Enclosure flat STEP | `88c437373fe4fdf91e8f0a5b5e0e5c135b290f0dfe18449ec3ee7c0970c1d075` |+| Enclosure SVG | `1657e3bbc3ef418617b45c5d9ab76a96d70b0ba6356c0e88a7ba07edc18b6519` |+| Windows release ZIP | `8e90475dd4189eb4f00c83c45ef0b9687d757e04a613ddf2ee1518c95506203d` |+| Firmament VSIX | `3f188020cdfc4908d49c0eb810baed4ec4b78e1eb8bd66d39553f4c4558587a4` |+| CLI NuGet | `6f4b3a2724c382e99f84fd6f155538f2c44ff99a614f2c4deb5ca104bd09c0df` |++Two clean invocation runs produced identical STEP/flat STEP/SVG hashes. Two+release-script runs produced identical normalized NuGet, VSIX, and Windows ZIP+bytes. The release script canonicalizes ZIP metadata, NuGet-generated relation+IDs, Cadmata last-modified metadata, and the NativeAOT PE/debug timestamps.++## Validation summary++- Release build: pass.+- Full serial .NET suite: 16 projects, 2,971 passed, 0 failed.+- Cadmata TSPack: typecheck pass; 81/81 tests; build pass; lint pass.+- VS Code extension TSPack: typecheck pass; 13/13 tests; build/package pass.+- Public NuGet pack and package-content audit: 16/16 pass.+- NativeAOT publish and outside-repository Forge smoke: pass for `win-x64`.+- Outside-repository CLI and external package consumers: pass.+- Deterministic artifact rerun: pass.+- `git diff --check`: pass.++## Findings++### ReleaseBlocker — fixed++- Added the omitted `Aetheris.Geometry` public package.+- Made the SQLite catalog flow transitively to package consumers.+- Removed the NativeAOT material-read dependency on EF runtime model building.+- Included the NativeAOT Forge Host in the product bundle and qualified it.+- Fixed a solution restore/build mismatch in `Aetheris.PmiInjectionDemo`.+- Replaced an ignored source-tree STEP dependency with the tracked canonical fixture.+- Made release scripting stop on native-command failures instead of emitting a partial artifact set.++### MustFix — fixed++- Reconciled public product/package/client metadata to Preview 3 while preserving Protocol v1 as an independent version.+- Clarified AGPL and third-party provenance; added the NIST acknowledgment.+- Removed the Bunny tool's hardcoded developer path and made the archive path explicit.+- Removed Cadmata's remote Google-font dependency.+- Restored TSPack as the only JavaScript package/build entrypoint and removed the accidental npm lockfile/fallback.+- Removed nondeterministic package and executable timestamps from release artifacts.++### DocumentForPreview++- Only `win-x64` is qualified. The CLI/Cadmata bundle is self-contained JIT; Forge Host is the NativeAOT executable.+- NativeAOT analysis still reports known warnings in code paths not exercised by the bounded Host protocol surface. The qualified Host paths pass runtime smoke.+- TSPack reports acknowledged dependency-version multiplicity and blocked dependency lifecycle scripts. These are policy diagnostics, not direct npm execution.+- Forge invocation timing fields may vary; produced artifacts, content hashes, and semantic manifest identity are deterministic.++### DeferredPostPreview3++- Additional RIDs and a fully NativeAOT CLI remain future qualification work.+- No new geometry/kernel, Sheet Metal, FEA, Firmament, Forge, Cadmata, physics, or interop capability was introduced.++## Remaining limitations++Preview 3 is qualified only for Windows x64. External consumers require .NET 10+for library use; the distributed Windows applications are self-contained. A+maintainer creating release artifacts also needs TSPack and the NativeAOT C+++toolchain. The NIST models and Stanford-derived evidence remain reference/test+data under their recorded provenance, not Aetheris-authored AGPL assets.diff --git a/docs/release/preview3-release-manifest.json b/docs/release/preview3-release-manifest.jsonnew file mode 100644index 00000000..a9dc0471--- /dev/null+++ b/docs/release/preview3-release-manifest.json@@ -0,0 +1,58 @@+{+ "aetherisVersion": "2.0.0-preview.3",+ "forgeHostProtocolVersion": 1,+ "qualifiedRids": ["win-x64"],+ "packages": [+ "Aetheris.Kernel.Core",+ "Aetheris.Modules",+ "Aetheris.Geometry",+ "Aetheris.Semantics",+ "Aetheris.Forge",+ "Aetheris.Collaboration",+ "Aetheris.Kernel.StandardLibrary",+ "Aetheris.Continuum",+ "Aetheris.Surfacing",+ "Aetheris.Piping",+ "Aetheris.SheetMetal",+ "Aetheris.Modules.BuiltIn",+ "Aetheris.Kernel.Firmament",+ "Aetheris.FEA",+ "Aetheris.Forge.Host",+ "Aetheris.Forge.KernelSDK",+ "Aetheris.CLI"+ ],+ "executables": [+ { "name": "Aetheris.CLI", "rid": "win-x64", "nativeAot": false, "selfContained": true },+ { "name": "Aetheris.Forge.Host", "rid": "win-x64", "nativeAot": true, "selfContained": true },+ { "name": "Cadmata", "rid": "win-x64", "nativeAot": false, "selfContained": true }+ ],+ "clientArtifacts": [+ { "name": "Cadmata production bundle", "buildSystem": "TSPack", "lockFile": "aetheris.client/ts-lock.toml" },+ { "name": "aetheris-firmament VSIX", "version": "0.3.0-preview.3", "buildSystem": "TSPack", "lockFile": "tools/vscode-firmament/ts-lock.toml" }+ ],+ "runtimeAssets": [+ {+ "name": "Standard Library material catalog",+ "path": "Aetheris.Kernel.StandardLibrary/Materials/Database/aetheris-materials-x1.sqlite",+ "sha256": "10180ac314b35c9b0f6b7b5fd415779cc05d1ab96ed3e71ab4da05d94e6d048e"+ }+ ],+ "testCounts": {+ "dotnet": 2971,+ "cadmata": 81,+ "vscodeExtension": 13+ },+ "representativeHashes": {+ "stepAp242": "114cd7c0c6a8a364b2943cc955a12d8a96b576a187dfc1957ea9f769296872be",+ "flatStep": "88c437373fe4fdf91e8f0a5b5e0e5c135b290f0dfe18449ec3ee7c0970c1d075",+ "svg": "1657e3bbc3ef418617b45c5d9ab76a96d70b0ba6356c0e88a7ba07edc18b6519",+ "windowsBundle": "8e90475dd4189eb4f00c83c45ef0b9687d757e04a613ddf2ee1518c95506203d",+ "firmamentVsix": "3f188020cdfc4908d49c0eb810baed4ec4b78e1eb8bd66d39553f4c4558587a4",+ "cliNuget": "6f4b3a2724c382e99f84fd6f155538f2c44ff99a614f2c4deb5ca104bd09c0df"+ },+ "knownPackagingLimitations": [+ "Only win-x64 is qualified for Preview 3.",+ "The CLI and Cadmata are self-contained JIT applications; Forge Host is the qualified NativeAOT executable.",+ "Release creation requires TSPack and the .NET NativeAOT C++ toolchain."+ ]+}diff --git a/scripts/package-public-libraries.ps1 b/scripts/package-public-libraries.ps1index d7e546ae..d2c9a3e2 100644--- a/scripts/package-public-libraries.ps1+++ b/scripts/package-public-libraries.ps1@@ -1,12 +1,50 @@param(- [string]$Version = "2.0.0-preview.2",+ [string]$Version = "2.0.0-preview.3",[string]$OutputDirectory = "artifacts/packages/public-libraries")$ErrorActionPreference = "Stop"+Add-Type -AssemblyName System.IO.Compression.FileSystem$repoRoot = Split-Path -Parent $PSScriptRoot$outputPath = [IO.Path]::GetFullPath((Join-Path $repoRoot $OutputDirectory))+function Normalize-NuGetPackage([string]$Path) {+ $temporary = "$Path.deterministic"+ $source = [IO.Compression.ZipFile]::OpenRead($Path)+ $target = [IO.Compression.ZipFile]::Open($temporary, [IO.Compression.ZipArchiveMode]::Create)+ try {+ foreach ($sourceEntry in ($source.Entries | Sort-Object FullName)) {+ $entryName = $sourceEntry.FullName+ if ($entryName -match '^package/services/metadata/core-properties/.+\.psmdcp$') {+ $entryName = 'package/services/metadata/core-properties/aetheris.psmdcp'+ }++ $targetEntry = $target.CreateEntry($entryName, [IO.Compression.CompressionLevel]::Optimal)+ $targetEntry.LastWriteTime = [DateTimeOffset]::new(1980, 1, 1, 0, 0, 0, [TimeSpan]::Zero)+ if ($sourceEntry.FullName.EndsWith('/')) { continue }++ $input = $sourceEntry.Open()+ $outputStream = $targetEntry.Open()+ try {+ if ($sourceEntry.FullName -eq '_rels/.rels') {+ $reader = [IO.StreamReader]::new($input)+ try { $content = $reader.ReadToEnd() } finally { $reader.Dispose() }+ $content = [Regex]::Replace($content, 'package/services/metadata/core-properties/[^"'']+\.psmdcp', 'package/services/metadata/core-properties/aetheris.psmdcp')+ $content = [Regex]::Replace($content, '(manifest" Target="/[^"]+\.nuspec" Id=")[^"]+', '${1}RManifest')+ $content = [Regex]::Replace($content, '(core-properties" Target="/package/services/metadata/core-properties/aetheris\.psmdcp" Id=")[^"]+', '${1}RCoreProperties')+ $writer = [IO.StreamWriter]::new($outputStream, [Text.UTF8Encoding]::new($false))+ try { $writer.Write($content) } finally { $writer.Dispose() }+ }+ else { $input.CopyTo($outputStream) }+ }+ finally { $outputStream.Dispose(); $input.Dispose() }+ }+ }+ finally { $target.Dispose(); $source.Dispose() }++ Move-Item -LiteralPath $temporary -Destination $Path -Force+}+if (Test-Path -LiteralPath $outputPath) {$existing = @(Get-ChildItem -LiteralPath $outputPath -Force)if ($existing.Count -gt 0) {@@ -20,6 +58,7 @@ if (Test-Path -LiteralPath $outputPath) {$projects = @("Aetheris.Kernel.Core/Aetheris.Kernel.Core.csproj","Aetheris.Modules/Aetheris.Modules.csproj",+ "Aetheris.Geometry/Aetheris.Geometry.csproj","Aetheris.Semantics/Aetheris.Semantics.csproj","Aetheris.Forge/Aetheris.Forge.csproj","Aetheris.Collaboration/Aetheris.Collaboration.csproj",@@ -45,12 +84,16 @@ try {}$packageIds = $projects | ForEach-Object { [IO.Path]::GetFileNameWithoutExtension($_) }- $packageIds | Set-Content -LiteralPath (Join-Path $outputPath "PACKAGE_ORDER.txt") -Encoding utf8NoBOM+ [IO.File]::WriteAllLines(+ (Join-Path $outputPath "PACKAGE_ORDER.txt"),+ [string[]]$packageIds,+ [Text.UTF8Encoding]::new($false))$packages = @(Get-ChildItem -LiteralPath $outputPath -Filter "*.nupkg" -File)if ($packages.Count -ne $projects.Count) {throw "Expected $($projects.Count) packages but found $($packages.Count)."}+ $packages | ForEach-Object { Normalize-NuGetPackage $_.FullName }} finally {Pop-Location}diff --git a/scripts/package-release.ps1 b/scripts/package-release.ps1index b812bc54..9c134a47 100644--- a/scripts/package-release.ps1+++ b/scripts/package-release.ps1@@ -7,6 +7,8 @@ param()$ErrorActionPreference = 'Stop'+$PSNativeCommandUseErrorActionPreference = $true+Add-Type -AssemblyName System.IO.Compression.FileSystem$repoRoot = Split-Path -Parent $PSScriptRoot$output = [System.IO.Path]::GetFullPath((Join-Path $repoRoot $OutputDirectory))$stage = Join-Path $output 'stage'@@ -44,33 +46,66 @@ function Normalize-ZipArchive([string]$Path, [switch]$NuGetPackage) {finally { $target.Dispose(); $source.Dispose() }Move-Item -LiteralPath $temporary -Destination $Path -Force}++function Normalize-PeTimestamps([string]$Path) {+ $bytes = [IO.File]::ReadAllBytes($Path)+ $peOffset = [BitConverter]::ToInt32($bytes, 0x3c)+ if ([BitConverter]::ToUInt32($bytes, $peOffset) -ne 0x00004550) {+ throw "Not a PE executable: $Path"+ }++ [BitConverter]::GetBytes([uint32]0).CopyTo($bytes, $peOffset + 8)+ $sectionCount = [BitConverter]::ToUInt16($bytes, $peOffset + 6)+ $optionalHeaderSize = [BitConverter]::ToUInt16($bytes, $peOffset + 20)+ $optionalHeaderOffset = $peOffset + 24+ $magic = [BitConverter]::ToUInt16($bytes, $optionalHeaderOffset)+ $dataDirectoryOffset = if ($magic -eq 0x20b) { 112 } elseif ($magic -eq 0x10b) { 96 } else { throw "Unsupported PE optional-header magic in $Path" }+ $debugDirectoryEntry = $optionalHeaderOffset + $dataDirectoryOffset + (6 * 8)+ $debugRva = [BitConverter]::ToUInt32($bytes, $debugDirectoryEntry)+ $debugSize = [BitConverter]::ToUInt32($bytes, $debugDirectoryEntry + 4)+ $sectionHeadersOffset = $optionalHeaderOffset + $optionalHeaderSize++ if ($debugRva -ne 0 -and $debugSize -ne 0) {+ for ($sectionIndex = 0; $sectionIndex -lt $sectionCount; $sectionIndex++) {+ $sectionOffset = $sectionHeadersOffset + ($sectionIndex * 40)+ $virtualSize = [BitConverter]::ToUInt32($bytes, $sectionOffset + 8)+ $virtualAddress = [BitConverter]::ToUInt32($bytes, $sectionOffset + 12)+ $rawSize = [BitConverter]::ToUInt32($bytes, $sectionOffset + 16)+ $rawOffset = [BitConverter]::ToUInt32($bytes, $sectionOffset + 20)+ $mappedSize = [Math]::Max($virtualSize, $rawSize)+ if ($debugRva -lt $virtualAddress -or $debugRva -ge ($virtualAddress + $mappedSize)) { continue }++ $debugOffset = $rawOffset + ($debugRva - $virtualAddress)+ for ($entryOffset = $debugOffset; $entryOffset -lt ($debugOffset + $debugSize); $entryOffset += 28) {+ [BitConverter]::GetBytes([uint32]0).CopyTo($bytes, [int]$entryOffset + 4)+ }+ break+ }+ }++ [IO.File]::WriteAllBytes($Path, $bytes)+}Remove-Item -LiteralPath $output -Recurse -Force -ErrorAction SilentlyContinueNew-Item -ItemType Directory -Force -Path $stage, (Join-Path $output 'packages') | Out-NullPush-Location (Join-Path $repoRoot 'aetheris.client')try {- if (Get-Command tspack -ErrorAction SilentlyContinue) {- tspack sync- tspack check- tspack run typecheck- tspack run test- tspack run build- tspack run lint- }- else {- # GitHub-hosted release runners do not carry the maintainer's standalone- # tspack binary. Install the locked package graph with lifecycle scripts- # disabled, then run the same project targets explicitly.- npm install --ignore-scripts- npm run test- npm run build- npm run lint+ if (-not (Get-Command tspack -ErrorAction SilentlyContinue)) {+ throw 'TSPack is required to build Cadmata. Restore the repository build prerequisite; do not substitute an npm lockfile.'}+ tspack sync+ tspack check+ tspack run typecheck+ tspack run test+ tspack run build+ tspack run lint}finally { Pop-Location }-dotnet publish (Join-Path $repoRoot 'Aetheris.CLI/Aetheris.CLI.csproj') -c Release -r win-x64 --self-contained true -p:Version=$Version -o (Join-Path $stage 'Aetheris-win-x64')-dotnet publish (Join-Path $repoRoot 'Aetheris.Server/Aetheris.Server.csproj') -c Release -r win-x64 --self-contained true -p:Version=$Version -o (Join-Path $stage 'Aetheris-win-x64/cadmata')+dotnet publish (Join-Path $repoRoot 'Aetheris.CLI/Aetheris.CLI.csproj') -c Release -r win-x64 --self-contained true -t:Rebuild -p:Version=$Version -p:DebugType=None -p:DebugSymbols=false -o (Join-Path $stage 'Aetheris-win-x64')+dotnet publish (Join-Path $repoRoot 'Aetheris.Forge.Host/Aetheris.Forge.Host.csproj') -c Release -r win-x64 --self-contained true -t:Rebuild -p:PublishAot=true -p:Version=$Version -p:DebugType=None -p:DebugSymbols=false -o (Join-Path $stage 'Aetheris-win-x64/forge-host')+Normalize-PeTimestamps (Join-Path $stage 'Aetheris-win-x64/forge-host/Aetheris.Forge.Host.exe')+dotnet publish (Join-Path $repoRoot 'Aetheris.Server/Aetheris.Server.csproj') -c Release -r win-x64 --self-contained true -t:Rebuild -p:Version=$Version -p:DebugType=None -p:DebugSymbols=false -o (Join-Path $stage 'Aetheris-win-x64/cadmata')$endpoints = Join-Path $stage 'Aetheris-win-x64/cadmata/Cadmata.staticwebassets.endpoints.json'if (Test-Path -LiteralPath $endpoints) {$canonicalEndpoints = [Regex]::Replace([IO.File]::ReadAllText($endpoints),@@ -79,21 +114,24 @@ if (Test-Path -LiteralPath $endpoints) {}# Build the framework-dependent tool payload explicitly. Reusing the preceding# RID-specific publish output can package stale non-RID bytes with a new filename.-dotnet pack (Join-Path $repoRoot 'Aetheris.CLI/Aetheris.CLI.csproj') -c Release -p:Version=$Version -p:DebugType=None -p:DebugSymbols=false -o (Join-Path $output 'packages')+dotnet pack (Join-Path $repoRoot 'Aetheris.CLI/Aetheris.CLI.csproj') -c Release -t:Rebuild -p:Version=$Version -p:DebugType=None -p:DebugSymbols=false -o (Join-Path $output 'packages')Get-ChildItem -LiteralPath (Join-Path $output 'packages') -Filter '*.nupkg' -File | ForEach-Object { Normalize-ZipArchive $_.FullName -NuGetPackage }Get-ChildItem -LiteralPath $stage -Recurse -Filter '*.pdb' -File | Remove-Item -Force$extensionRoot = Join-Path $repoRoot 'tools/vscode-firmament'+$extensionArtifact = Join-Path $output 'aetheris-firmament-0.3.0-preview.3.vsix'Push-Location $extensionRoottry {- npm install --no-save typescript esbuild @vscode/vsce @types/vscode @types/node vscode-textmate vscode-oniguruma- npx tsc --noEmit- node --test tests/*.test.ts- npx esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.cjs- npx vsce package --no-dependencies --out (Join-Path $output 'aetheris-firmament-0.2.0-preview.2.vsix')+ tspack sync+ tspack check+ tspack run typecheck+ tspack run test+ tspack run build+ tspack run package+ Move-Item -LiteralPath (Join-Path $extensionRoot 'dist/aetheris-firmament-0.3.0-preview.3.vsix') -Destination $extensionArtifact -Force}finally { Pop-Location }-Normalize-ZipArchive (Join-Path $output 'aetheris-firmament-0.2.0-preview.2.vsix')+Normalize-ZipArchive $extensionArtifact$zip = Join-Path $output "Aetheris-$Version-win-x64.zip"$sourceRoot = Join-Path $stage 'Aetheris-win-x64'@@ -109,5 +147,5 @@ try {}}finally { $archive.Dispose() }-$releaseFiles = @($zip, (Join-Path $output 'aetheris-firmament-0.2.0-preview.2.vsix')) + (Get-ChildItem -LiteralPath (Join-Path $output 'packages') -Filter '*.nupkg' -File | Select-Object -ExpandProperty FullName)+$releaseFiles = @($zip, $extensionArtifact) + (Get-ChildItem -LiteralPath (Join-Path $output 'packages') -Filter '*.nupkg' -File | Select-Object -ExpandProperty FullName)$releaseFiles | Get-FileHash -Algorithm SHA256 | ForEach-Object { "{0} {1}" -f $_.Hash.ToLowerInvariant(), $_.Path.Substring($output.Length + 1) } | Set-Content (Join-Path $output 'SHA256SUMS.txt')diff --git a/tests/PublicPackageSmoke/Program.cs b/tests/PublicPackageSmoke/Program.csindex 69d6b16e..ac26353d 100644--- a/tests/PublicPackageSmoke/Program.cs+++ b/tests/PublicPackageSmoke/Program.cs@@ -1,4 +1,6 @@using System.Reflection;+using Aetheris.Forge.Host;+using Aetheris.Kernel.StandardLibrary.Materials;string[] packageAssemblies =[@@ -15,10 +17,20 @@ foreach (var assemblyName in packageAssemblies).GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;- if (version is null || !version.StartsWith("2.0.0-preview.2", StringComparison.Ordinal))+ if (version is null || !version.StartsWith("2.0.0-preview.3", StringComparison.Ordinal)){throw new InvalidOperationException($"{assemblyName} reported unexpected version '{version}'.");}Console.WriteLine($"{assemblyName} {version}");}++var material = new MaterialResolver().Resolve("Standard.Materials.Aluminum.5052_H32");+if (!material.IsSuccess || material.Material?.Identity.StableId != "aluminum/5052-h32")+ throw new InvalidOperationException($"Packaged material resolution failed: {material.Message}");+Console.WriteLine($"Material {material.Material.Identity.FirmamentPath} resolved from the packaged SQLite catalog.");++var host = new ForgeProtocolHost();+if (host.GetHostInfo().ProtocolVersion != ForgeHostProtocol.Version || host.ListTemplates().Templates.Count == 0)+ throw new InvalidOperationException("Packaged Forge Host did not expose Protocol v1 templates.");+Console.WriteLine($"Forge Host Protocol v{ForgeHostProtocol.Version}: {host.ListTemplates().Templates.Count} templates.");diff --git a/tests/PublicPackageSmoke/PublicPackageSmoke.csproj b/tests/PublicPackageSmoke/PublicPackageSmoke.csprojindex 651c9062..d4c698e7 100644--- a/tests/PublicPackageSmoke/PublicPackageSmoke.csproj+++ b/tests/PublicPackageSmoke/PublicPackageSmoke.csproj@@ -6,9 +6,9 @@<Nullable>enable</Nullable></PropertyGroup><ItemGroup>- <PackageReference Include="Aetheris.Kernel.Core" Version="2.0.0-preview.2" />- <PackageReference Include="Aetheris.Kernel.Firmament" Version="2.0.0-preview.2" />- <PackageReference Include="Aetheris.Forge.Host" Version="2.0.0-preview.2" />- <PackageReference Include="Aetheris.Forge.KernelSDK" Version="2.0.0-preview.2" />+ <PackageReference Include="Aetheris.Kernel.Core" Version="2.0.0-preview.3" />+ <PackageReference Include="Aetheris.Kernel.Firmament" Version="2.0.0-preview.3" />+ <PackageReference Include="Aetheris.Forge.Host" Version="2.0.0-preview.3" />+ <PackageReference Include="Aetheris.Forge.KernelSDK" Version="2.0.0-preview.3" /></ItemGroup></Project>diff --git a/tools/Aetheris.BunnyM0/Program.cs b/tools/Aetheris.BunnyM0/Program.csindex 335e424f..64d8b9d3 100644--- a/tools/Aetheris.BunnyM0/Program.cs+++ b/tools/Aetheris.BunnyM0/Program.cs@@ -8,8 +8,14 @@ using Aetheris.Geometry;using Aetheris.Reconstruction;const string selectedMember = "bunny/reconstruction/bun_zipper.ply";+if (args.Length == 0)+{+ Console.Error.WriteLine("Usage: Aetheris.BunnyM0 <path-to-bunny.tar.gz> [output-directory]");+ Environment.ExitCode = 2;+ return;+}var root = FindRoot();-var archive = Path.GetFullPath(args.Length > 0 ? args[0] : @"C:\Users\yuech\Downloads\bunny.tar.gz");+var archive = Path.GetFullPath(args[0]);var output = Path.GetFullPath(args.Length > 1 ? args[1] : Path.Combine(root, "docs", "geometry", "artifacts", "bunny-m0"));if (!File.Exists(archive)) throw new FileNotFoundException("Local Stanford Bunny archive was not found.", archive);Directory.CreateDirectory(output); Directory.CreateDirectory(Path.Combine(output, "source"));diff --git a/tools/vscode-firmament/.gitignore b/tools/vscode-firmament/.gitignoreindex cdba2997..444391bb 100644--- a/tools/vscode-firmament/.gitignore+++ b/tools/vscode-firmament/.gitignore@@ -1,2 +1,3 @@.tspack/node_modules/+dist/*.vsixdiff --git a/tools/vscode-firmament/CHANGELOG.md b/tools/vscode-firmament/CHANGELOG.mdindex 366762a2..90ae4a32 100644--- a/tools/vscode-firmament/CHANGELOG.md+++ b/tools/vscode-firmament/CHANGELOG.md@@ -1,5 +1,11 @@# Changelog+## 0.3.0-preview.3++- Align package and CLI-facing metadata with Aetheris 2.0.0-preview.3.+- Preserve the feature-frozen Firmament language and existing trusted-workspace+ execution boundary.+## 0.2.0-preview.2- Align Firmament V2 syntax, diagnostics, commands, and reference links withdiff --git a/tools/vscode-firmament/LICENSE b/tools/vscode-firmament/LICENSEindex da0f98ea..8e950629 100644--- a/tools/vscode-firmament/LICENSE+++ b/tools/vscode-firmament/LICENSE@@ -1,9 +1,5 @@-MIT License+The Aetheris Firmament extension is part of Aetheris and is licensed under the+GNU Affero General Public License v3.0 (AGPL-3.0-only).-Copyright (c) 2025-2026 Yuechen Li--Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:--The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+The complete license text is available in the repository root at `LICENSE` and+at <https://www.gnu.org/licenses/agpl-3.0.html>.diff --git a/tools/vscode-firmament/README.md b/tools/vscode-firmament/README.mdindex eaa29946..860fa358 100644--- a/tools/vscode-firmament/README.md+++ b/tools/vscode-firmament/README.md@@ -1,12 +1,12 @@# Aetheris Firmament for VS Code-Firmament is Aetheris's canonical, intent-oriented language for mechanical design. This Preview 1 extension recognizes `.firmament` files, adds TextMate syntax highlighting, comments/brackets, and a focused set of canonical snippets, and delegates validation, STEP build, Cadmata viewing, and verification to the real Aetheris CLI.+Firmament is Aetheris's canonical, intent-oriented language for mechanical design. This Preview 3 extension recognizes `.firmament` files, adds TextMate syntax highlighting, comments/brackets, and a focused set of canonical snippets, and delegates validation, STEP build, Cadmata viewing, and verification to the real Aetheris CLI.## RequirementsInstall the Aetheris CLI so `aetheris` is on `PATH`, or set `aetheris.executablePath` to the executable. The extension never implements or guesses compiler semantics.-Preview 2 builds are installed from the supplied VSIX: in VS Code run **Extensions: Install from VSIX...** and select `aetheris-firmament-0.2.0-preview.2.vsix`.+Preview 3 builds are installed from the supplied VSIX: in VS Code run **Extensions: Install from VSIX...** and select `aetheris-firmament-0.3.0-preview.3.vsix`.## Commands@@ -23,7 +23,7 @@ Structured CLI diagnostics populate VS Code Problems. Validate and build remainUse `model`, `box`, `cylinder`, `concept-path`, `profile-from-path`, `hole-shaft`, `hole-counterbore`, `hole-countersink`, `slot-capsule`, `edgefinish-chamfer`, `edgefinish-fillet`, `require`, `pmi-projection`, `assert-volume`, and `inline-step`.-## Preview 1 limits+## Preview 3 limitsSyntax highlighting is not capability proof. This extension has no LSP, completion engine, semantic tokens, formatter, hover, navigation, or embedded CAD view. Respect build diagnostics and the frozen capability matrix in the [Aetheris manual](https://yuechen-li.github.io/aetheris/).diff --git a/tools/vscode-firmament/manifest.tsx b/tools/vscode-firmament/manifest.tsxindex a04f808a..79d895c7 100644--- a/tools/vscode-firmament/manifest.tsx+++ b/tools/vscode-firmament/manifest.tsx@@ -39,9 +39,9 @@ export default define(<Workspace name="aetheris-firmament" runtime="nodejs"><Packagename="aetheris-firmament"- version="0.2.0-preview.2"+ version="0.3.0-preview.3"kind="app"- license="MIT"+ license="AGPL-3.0-only"dependencies={{values: [deps.vscodeTypes,@@ -93,7 +93,7 @@ export default define("package","--no-dependencies","--out",- "../../artifacts/release/preview2/aetheris-firmament-0.2.0-preview.2.vsix",+ "dist/aetheris-firmament-0.3.0-preview.3.vsix",],},]}diff --git a/tools/vscode-firmament/package.json b/tools/vscode-firmament/package.jsonindex e9e9748f..8785694c 100644--- a/tools/vscode-firmament/package.json+++ b/tools/vscode-firmament/package.json@@ -2,9 +2,9 @@"name": "aetheris-firmament","displayName": "Aetheris Firmament","description": "Firmament language support and CLI-backed workflows for Aetheris.",- "version": "0.2.0-preview.2",+ "version": "0.3.0-preview.3","publisher": "aetheris",- "license": "MIT",+ "license": "AGPL-3.0-only","preview": true,"type": "module","repository": {