diff --git a/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs b/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs index 9c67e11e..23f2568e 100644 --- a/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs +++ b/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs @@ -94,7 +94,7 @@ public WebApiConnector(string ipAddress, string userName, string password, bool new ApiRequestFactory(ReqIdGenerator, RequestParameterChecker), ApiResponseChecker); requestHandler.ApiLogout(); - requestHandler.ApiLogin(userName, string.Empty, true); + requestHandler.ApiLogin(userName, password, true); NumberOfInstances++; } diff --git a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/Exploratory.cs b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/Exploratory.cs index 893f492e..df7266ab 100644 --- a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/Exploratory.cs +++ b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/Exploratory.cs @@ -36,7 +36,7 @@ public async void should_read_huge() #if RELEASE return; #endif - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); var myBOOL = new WebApiBool(connector, "", "myBOOL"); @@ -156,7 +156,7 @@ public async Task should_write_huge() #if RELEASE return; #endif - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); diff --git a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiConnectorTests.cs b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiConnectorTests.cs index 528f9534..da4d3554 100644 --- a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiConnectorTests.cs +++ b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiConnectorTests.cs @@ -43,7 +43,7 @@ public WebApiConnectorTests(ITestOutputHelper output) [Fact] public async Task should_write_bool() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true).BuildAndStart() as WebApiConnector; + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true).BuildAndStart() as WebApiConnector; //await connector.Authenticate(TargetIp, "Everybody", ""); var myBOOL = new WebApiBool(connector, "", "myBOOL"); var actual = await connector.WriteAsync(myBOOL, true); @@ -54,7 +54,7 @@ public async Task should_write_bool() [Fact] public async Task should_read_bool() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); var myBOOL = new WebApiBool(connector, "", "myBOOL"); await connector.WriteAsync(myBOOL, true); var response = await connector.ReadAsync("myBOOL"); @@ -65,7 +65,7 @@ public async Task should_read_bool() [Fact] public async Task should_write_byte() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); var myBYTE = new WebApiByte(connector, "", "myBYTE"); var actual = await connector.WriteAsync(myBYTE, 155); @@ -75,7 +75,7 @@ public async Task should_write_byte() [Fact] public async Task should_read_byte() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); var myBYTE = new WebApiByte(connector, "", "myBYTE"); await connector.WriteAsync(myBYTE, 158); var response = await connector.ReadAsync("myBYTE"); @@ -86,7 +86,7 @@ public async Task should_read_byte() [Fact] public async Task should_read_lint() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); var myLINT = new WebApiLInt(connector, "", "myLINT"); await connector.WriteAsync(myLINT, 9223372036854775807); @@ -98,7 +98,7 @@ public async Task should_read_lint() [Fact] public async Task should_batch_read_primitives() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); var myBOOL = new WebApiBool(connector, "", "myBOOL"); @@ -181,7 +181,7 @@ public async Task should_batch_read_primitives() [Fact] public async Task should_batch_write_primitives() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); @@ -900,7 +900,7 @@ public async Task should_batch_read_a_lot_of_primitives() #if RELEASE return; #endif - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); @@ -1772,7 +1772,7 @@ public async Task should_batch_read_a_lot_of_primitives() [Fact] public async Task should_report_failure_when_unable_to_read_single_item() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); connector.ExceptionBehaviour = CommExceptionBehaviour.Ignore; var myBYTE = new WebApiByte(connector, "", "myBYTE_does_not_exist"); var response = await connector.ReadAsync(myBYTE); @@ -1785,7 +1785,7 @@ public async Task should_report_failure_when_unable_to_read_single_item() [Fact] public async Task should_report_failure_when_unable_to_write_single_item() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); connector.ExceptionBehaviour = CommExceptionBehaviour.Ignore; var myBYTE = new WebApiByte(connector, "", "myBYTE_does_not_exist"); var response = await connector.WriteAsync(myBYTE,55); @@ -1800,7 +1800,7 @@ public async Task should_report_failure_when_unable_to_write_single_item() [Fact] public async Task should_report_failure_when_unable_to_bulk_read_items() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); connector.ExceptionBehaviour = CommExceptionBehaviour.Ignore; var myBYTE = new WebApiByte(connector, "", "myBYTE_o"); var myWORD = new WebApiWord(connector, "", "myWORD"); @@ -1823,7 +1823,7 @@ public async Task should_report_failure_when_unable_to_bulk_read_items() [Fact] public async Task should_report_failure_when_unable_to_bulk_write_items() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); connector.ExceptionBehaviour = CommExceptionBehaviour.Ignore; var myBYTE = new WebApiByte(connector, "", "myBYTE_o"); var myWORD = new WebApiWord(connector, "", "myWORD"); @@ -1847,7 +1847,7 @@ public async Task should_report_failure_when_unable_to_bulk_write_items() [Fact] public void should_rethrow_exception_bulk() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); connector.ExceptionBehaviour = CommExceptionBehaviour.ReThrow; var myBYTE = new WebApiByte(connector, "", "myBYTE_o"); var myWORD = new WebApiWord(connector, "", "myWORD"); @@ -1868,7 +1868,7 @@ public void should_rethrow_exception_bulk() [Fact] public void should_rethrow_exception_single() { - var connector = new WebApiConnector(TargetIp, "Everybody", "", true); + var connector = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true); connector.ExceptionBehaviour = CommExceptionBehaviour.ReThrow; var myBYTE = new WebApiByte(connector, "", "myBYTE_o"); diff --git a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiPrimitiveTests.cs b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiPrimitiveTests.cs index 6138b1ca..66013413 100644 --- a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiPrimitiveTests.cs +++ b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/WebApiConnector/WebApiPrimitiveTests.cs @@ -22,7 +22,7 @@ public static class TestConnector { private static string TargetIp { get; } = Environment.GetEnvironmentVariable("AX_WEBAPI_TARGET") ?? "10.10.101.1"; - public static WebApiConnector TestApiConnector { get; } = new WebApiConnector(TargetIp, "Everybody", "", true).BuildAndStart() as WebApiConnector; + public static WebApiConnector TestApiConnector { get; } = new WebApiConnector(TargetIp, "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true).BuildAndStart() as WebApiConnector; } public abstract class WebApiPrimitiveTests where T : OnlinerBase, new() diff --git a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_56.cs b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_56.cs index 7dcf774e..be6014f1 100644 --- a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_56.cs +++ b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_56.cs @@ -80,7 +80,7 @@ public async Task reproduction_no_base() public async Task run_on_twin_connector() { var twin = new ax_test_projectTwinController(ConnectorAdapterBuilder.Build() - .CreateWebApi(Environment.GetEnvironmentVariable("AX_WEBAPI_TARGET"), "Everybody", "", true)); + .CreateWebApi(Environment.GetEnvironmentVariable("AX_WEBAPI_TARGET"), "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true)); var primitives = twin.GH_PKTu_ix_56_SecondInheritance.RetrievePrimitives().Select(p => p.Symbol).ToList(); diff --git a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_xx.cs b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_xx.cs index d94a5330..1cac4203 100644 --- a/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_xx.cs +++ b/src/AXSharp.connectors/tests/AXSharp.Connector.Sax.WebAPITests/issues/GH_PTKu_ix_xx.cs @@ -23,7 +23,7 @@ public class GH_PTKu_ix_xx : IDisposable public GH_PTKu_ix_xx(ITestOutputHelper output) { Plc = new ax_test_projectTwinController(ConnectorAdapterBuilder.Build() - .CreateWebApi(Environment.GetEnvironmentVariable("AX_WEBAPI_TARGET"), "Everybody", "", true)); + .CreateWebApi(Environment.GetEnvironmentVariable("AX_WEBAPI_TARGET"), "Everybody", Environment.GetEnvironmentVariable("AX_TARGET_PWD"), true)); Plc.Connector.ReadWriteCycleDelay = 250; Plc.Connector.ExceptionBehaviour = CommExceptionBehaviour.ReThrow; Plc.Connector.SubscriptionMode = ReadSubscriptionMode.Polling; diff --git a/src/AXSharp.connectors/tests/AXSharp.TIA.ConnectorTests/TIA2AXSharpAdapterTests.cs b/src/AXSharp.connectors/tests/AXSharp.TIA.ConnectorTests/TIA2AXSharpAdapterTests.cs index 1abd2bc6..116e73d8 100644 --- a/src/AXSharp.connectors/tests/AXSharp.TIA.ConnectorTests/TIA2AXSharpAdapterTests.cs +++ b/src/AXSharp.connectors/tests/AXSharp.TIA.ConnectorTests/TIA2AXSharpAdapterTests.cs @@ -35,7 +35,7 @@ public TIA2AXSharpAdapterTests(ITestOutputHelper output) public async void GoAxTest() { - var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, string.Empty); + var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, dbName:string.Empty); //var connector = new WebApiConnector("172.20.30.110", "Everybody", "", true, string.Empty); var adapter = await TIA2AXSharpAdapter.CreateAdapter(connector); @@ -67,7 +67,7 @@ public async void GoAxTest() public async void GoTiaPortalDbData() { - var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, string.Empty); + var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, dbName:string.Empty); //var rootObject = await TIA2AXSharpAdapter.CreateTIARootObject(connector, new[] { "DbData" }); //TIA2AXSharpSerializer.Serialize(rootObject, "dbData.json"); @@ -98,7 +98,7 @@ public async void GoTiaPortalDbData() public async void GoTiaPortalDbDataFromParamTest() { - var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, string.Empty); + var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, dbName:string.Empty); var adapter = await TIA2AXSharpAdapter.CreateAdapter(connector, "dbData.json"); @@ -124,7 +124,7 @@ public async void GoTiaPortalDbDataFromParamTest() public async void GoAdapterWithSerializationTest() { - var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, string.Empty); + var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, dbName:string.Empty); var rootObject = await TIA2AXSharpAdapter.CreateTIARootObject(connector, new[] { "dbtest" }); TIA2AXSharpSerializer.Serialize(rootObject, "test.json"); @@ -149,7 +149,7 @@ public async void GoAdapterWithSerializationTest() public async void GoAdapterFromDeSerializedTest() { - var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, string.Empty); + var connector = new WebApiConnector("10.10.10.180", "Everybody", "", true, dbName:string.Empty); var rootObject = TIA2AXSharpSerializer.Deserialize("test.json"); diff --git a/src/AXSharp.tools/src/AXSharp.TIA2AX.TranformerTests/AXPseoudoProjectGeneratorTests.cs b/src/AXSharp.tools/src/AXSharp.TIA2AX.TranformerTests/AXPseoudoProjectGeneratorTests.cs index ca6ee81f..91d6e4a8 100644 --- a/src/AXSharp.tools/src/AXSharp.TIA2AX.TranformerTests/AXPseoudoProjectGeneratorTests.cs +++ b/src/AXSharp.tools/src/AXSharp.TIA2AX.TranformerTests/AXPseoudoProjectGeneratorTests.cs @@ -16,7 +16,9 @@ public class AXPseoudoProjectGeneratorTests public void CreateTest() { var assemblyLocation = new FileInfo(Assembly.GetExecutingAssembly().Location); - AXPseoudoProjectGenerator.Create(assemblyLocation.DirectoryName, "output", new string[] { Path.Combine(assemblyLocation.DirectoryName, "samples", "ExportViacDbBezInstancneho.db") }); + AXPseoudoProjectGenerator.Create(assemblyLocation.DirectoryName, + "output", + new string[] { Path.Combine(assemblyLocation.DirectoryName, "samples", "ExportViacDbBezInstancneho.db") }, new Options()); var expectedConfiguration = @"CONFIGURATION MyConfiguration TASK Main(Interval := T#10ms, Priority := 1); diff --git a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Program.cs b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Program.cs index 8079a5c4..537a8cea 100644 --- a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Program.cs +++ b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Program.cs @@ -49,7 +49,7 @@ void Main(Options o) Stopwatch sw = new Stopwatch(); sw.Start(); - var connector = new WebApiConnector(o.Ip, o.Username, o.Password, true, string.Empty); + var connector = new WebApiConnector(o.Ip, o.Username, o.Password, true, dbName:string.Empty); Console.WriteLine("Connected."); Console.WriteLine("Generating..."); diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 9cd7f190..ffd03c42 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -7,77 +7,50 @@ all - runtime; build; native; contentfiles; analyzers; buildtransitive + runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - + + + + + + + - - + - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - + - - + - + - - - - - + - diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/configuration.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/configuration.g.cs index 6d068621..08151d29 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/configuration.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/configuration.g.cs @@ -238,11 +238,16 @@ public async Task> PlainToShadowAsync(Pocos.Pokus pl return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.Pokus plain, Pocos.Pokus latest = null) { if (latest == null) @@ -426,11 +431,16 @@ public async Task> PlainToShadowAsync(Pocos.Nested p return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.Nested plain, Pocos.Nested latest = null) { if (latest == null) diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/all_primitives.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/all_primitives.g.cs index 4cc1225e..09637d9f 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/all_primitives.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/all_primitives.g.cs @@ -436,11 +436,16 @@ public async Task> PlainToShadowAsync(Pocos.all_prim return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.all_primitives plain, Pocos.all_primitives latest = null) { if (latest == null) diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs index 1d36ab00..6f5f2983 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs @@ -204,11 +204,16 @@ public async Task> PlainToShadowAsync(Pocos.MonsterD return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.MonsterData.MonsterBase plain, Pocos.MonsterData.MonsterBase latest = null) { if (latest == null) @@ -441,11 +446,16 @@ public async Task> PlainToShadowAsync(Pocos.MonsterD return this.RetrievePrimitives(); } + /// public async override Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public new async Task DetectsAnyChangeAsync(Pocos.MonsterData.Monster plain, Pocos.MonsterData.Monster latest = null) { if (latest == null) @@ -619,11 +629,16 @@ public async Task> PlainToShadowAsync(Pocos.MonsterD return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.MonsterData.DriveBase plain, Pocos.MonsterData.DriveBase latest = null) { if (latest == null) diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs index ce765757..41a9917d 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs @@ -211,11 +211,16 @@ public async Task> PlainToShadowAsync(Pocos.RealMons return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.RealMonsterBase plain, Pocos.RealMonsterData.RealMonsterBase latest = null) { if (latest == null) @@ -450,11 +455,16 @@ public async Task> PlainToShadowAsync(Pocos.RealMons return this.RetrievePrimitives(); } + /// public async override Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public new async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.RealMonster plain, Pocos.RealMonsterData.RealMonster latest = null) { if (latest == null) @@ -649,11 +659,16 @@ public async Task> PlainToShadowAsync(Pocos.RealMons return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.DriveBaseNested plain, Pocos.RealMonsterData.DriveBaseNested latest = null) { if (latest == null) @@ -928,11 +943,16 @@ public async Task> PlainToShadowAsync(Pocos.RealMons return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.NestedLevelOne plain, Pocos.RealMonsterData.NestedLevelOne latest = null) { if (latest == null) @@ -1207,11 +1227,16 @@ public async Task> PlainToShadowAsync(Pocos.RealMons return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.NestedLevelTwo plain, Pocos.RealMonsterData.NestedLevelTwo latest = null) { if (latest == null) @@ -1465,11 +1490,16 @@ public async Task> PlainToShadowAsync(Pocos.RealMons return this.RetrievePrimitives(); } + /// public async virtual Task AnyChangeAsync(T plain) { return await this.DetectsAnyChangeAsync((dynamic)plain); } + /// + ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. + ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. + /// public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.NestedLevelThree plain, Pocos.RealMonsterData.NestedLevelThree latest = null) { if (latest == null)