Skip to content

Commit 023d0a7

Browse files
DAL Factory done
1 parent 7c8e3cd commit 023d0a7

194 files changed

Lines changed: 5666 additions & 3806 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="AnnotatingElementFactory.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Dal
26+
{
27+
using System;
28+
29+
/// <summary>
30+
/// The purpose of the <see cref="AnnotatingElementFactory"/> is to create a new instance of a
31+
/// <see cref="Core.POCO.Root.Annotations.AnnotatingElement"/> based on a <see cref="Core.DTO.Root.Annotations.AnnotatingElement"/>
32+
/// </summary>
33+
public class AnnotatingElementFactory
34+
{
35+
/// <summary>
36+
/// Creates an instance of the <see cref="Core.POCO.Root.Annotations.AnnotatingElement"/> and sets the value properties
37+
/// based on the DTO
38+
/// </summary>
39+
/// <param name="dto">
40+
/// The instance of the <see cref="Core.DTO.Root.Annotations.AnnotatingElement"/>
41+
/// </param>
42+
/// <returns>
43+
/// an instance of <see cref="Core.POCO.Root.Annotations.AnnotatingElement"/>
44+
/// </returns>
45+
/// <exception cref="ArgumentNullException">
46+
/// thrown when <paramref name="dto"/> is null
47+
/// </exception>
48+
public Core.POCO.Root.Annotations.AnnotatingElement Create(Core.DTO.Root.Annotations.AnnotatingElement dto)
49+
{
50+
if (dto == null)
51+
{
52+
throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
53+
}
54+
55+
var poco = new Core.POCO.Root.Annotations.AnnotatingElement();
56+
57+
poco.Id = dto.Id;
58+
poco.AliasIds = dto.AliasIds;
59+
poco.DeclaredName = dto.DeclaredName;
60+
poco.DeclaredShortName = dto.DeclaredShortName;
61+
poco.ElementId = dto.ElementId;
62+
poco.IsImpliedIncluded = dto.IsImpliedIncluded;
63+
64+
return poco;
65+
}
66+
}
67+
}
68+
69+
// ------------------------------------------------------------------------------------------------
70+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
71+
// ------------------------------------------------------------------------------------------------
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="AssociationFactory.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Dal
26+
{
27+
using System;
28+
29+
/// <summary>
30+
/// The purpose of the <see cref="AssociationFactory"/> is to create a new instance of a
31+
/// <see cref="Core.POCO.Kernel.Associations.Association"/> based on a <see cref="Core.DTO.Kernel.Associations.Association"/>
32+
/// </summary>
33+
public class AssociationFactory
34+
{
35+
/// <summary>
36+
/// Creates an instance of the <see cref="Core.POCO.Kernel.Associations.Association"/> and sets the value properties
37+
/// based on the DTO
38+
/// </summary>
39+
/// <param name="dto">
40+
/// The instance of the <see cref="Core.DTO.Kernel.Associations.Association"/>
41+
/// </param>
42+
/// <returns>
43+
/// an instance of <see cref="Core.POCO.Kernel.Associations.Association"/>
44+
/// </returns>
45+
/// <exception cref="ArgumentNullException">
46+
/// thrown when <paramref name="dto"/> is null
47+
/// </exception>
48+
public Core.POCO.Kernel.Associations.Association Create(Core.DTO.Kernel.Associations.Association dto)
49+
{
50+
if (dto == null)
51+
{
52+
throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
53+
}
54+
55+
var poco = new Core.POCO.Kernel.Associations.Association();
56+
57+
poco.Id = dto.Id;
58+
poco.AliasIds = dto.AliasIds;
59+
poco.DeclaredName = dto.DeclaredName;
60+
poco.DeclaredShortName = dto.DeclaredShortName;
61+
poco.ElementId = dto.ElementId;
62+
poco.IsAbstract = dto.IsAbstract;
63+
poco.IsImplied = dto.IsImplied;
64+
poco.IsImpliedIncluded = dto.IsImpliedIncluded;
65+
poco.IsSufficient = dto.IsSufficient;
66+
67+
return poco;
68+
}
69+
}
70+
}
71+
72+
// ------------------------------------------------------------------------------------------------
73+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
74+
// ------------------------------------------------------------------------------------------------
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="DependencyFactory.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Dal
26+
{
27+
using System;
28+
29+
/// <summary>
30+
/// The purpose of the <see cref="DependencyFactory"/> is to create a new instance of a
31+
/// <see cref="Core.POCO.Root.Dependencies.Dependency"/> based on a <see cref="Core.DTO.Root.Dependencies.Dependency"/>
32+
/// </summary>
33+
public class DependencyFactory
34+
{
35+
/// <summary>
36+
/// Creates an instance of the <see cref="Core.POCO.Root.Dependencies.Dependency"/> and sets the value properties
37+
/// based on the DTO
38+
/// </summary>
39+
/// <param name="dto">
40+
/// The instance of the <see cref="Core.DTO.Root.Dependencies.Dependency"/>
41+
/// </param>
42+
/// <returns>
43+
/// an instance of <see cref="Core.POCO.Root.Dependencies.Dependency"/>
44+
/// </returns>
45+
/// <exception cref="ArgumentNullException">
46+
/// thrown when <paramref name="dto"/> is null
47+
/// </exception>
48+
public Core.POCO.Root.Dependencies.Dependency Create(Core.DTO.Root.Dependencies.Dependency dto)
49+
{
50+
if (dto == null)
51+
{
52+
throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
53+
}
54+
55+
var poco = new Core.POCO.Root.Dependencies.Dependency();
56+
57+
poco.Id = dto.Id;
58+
poco.AliasIds = dto.AliasIds;
59+
poco.DeclaredName = dto.DeclaredName;
60+
poco.DeclaredShortName = dto.DeclaredShortName;
61+
poco.ElementId = dto.ElementId;
62+
poco.IsImplied = dto.IsImplied;
63+
poco.IsImpliedIncluded = dto.IsImpliedIncluded;
64+
65+
return poco;
66+
}
67+
}
68+
}
69+
70+
// ------------------------------------------------------------------------------------------------
71+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
72+
// ------------------------------------------------------------------------------------------------
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="EnumerationDefinitionFactory.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Dal
26+
{
27+
using System;
28+
29+
/// <summary>
30+
/// The purpose of the <see cref="EnumerationDefinitionFactory"/> is to create a new instance of a
31+
/// <see cref="Core.POCO.Systems.Enumerations.EnumerationDefinition"/> based on a <see cref="Core.DTO.Systems.Enumerations.EnumerationDefinition"/>
32+
/// </summary>
33+
public class EnumerationDefinitionFactory
34+
{
35+
/// <summary>
36+
/// Creates an instance of the <see cref="Core.POCO.Systems.Enumerations.EnumerationDefinition"/> and sets the value properties
37+
/// based on the DTO
38+
/// </summary>
39+
/// <param name="dto">
40+
/// The instance of the <see cref="Core.DTO.Systems.Enumerations.EnumerationDefinition"/>
41+
/// </param>
42+
/// <returns>
43+
/// an instance of <see cref="Core.POCO.Systems.Enumerations.EnumerationDefinition"/>
44+
/// </returns>
45+
/// <exception cref="ArgumentNullException">
46+
/// thrown when <paramref name="dto"/> is null
47+
/// </exception>
48+
public Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Systems.Enumerations.EnumerationDefinition dto)
49+
{
50+
if (dto == null)
51+
{
52+
throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
53+
}
54+
55+
var poco = new Core.POCO.Systems.Enumerations.EnumerationDefinition();
56+
57+
poco.Id = dto.Id;
58+
poco.AliasIds = dto.AliasIds;
59+
poco.DeclaredName = dto.DeclaredName;
60+
poco.DeclaredShortName = dto.DeclaredShortName;
61+
poco.ElementId = dto.ElementId;
62+
poco.IsAbstract = dto.IsAbstract;
63+
poco.IsImpliedIncluded = dto.IsImpliedIncluded;
64+
poco.IsSufficient = dto.IsSufficient;
65+
((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation = ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation;
66+
((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation = ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation;
67+
68+
return poco;
69+
}
70+
}
71+
}
72+
73+
// ------------------------------------------------------------------------------------------------
74+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
75+
// ------------------------------------------------------------------------------------------------
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="FeatureFactory.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Dal
26+
{
27+
using System;
28+
29+
/// <summary>
30+
/// The purpose of the <see cref="FeatureFactory"/> is to create a new instance of a
31+
/// <see cref="Core.POCO.Core.Features.Feature"/> based on a <see cref="Core.DTO.Core.Features.Feature"/>
32+
/// </summary>
33+
public class FeatureFactory
34+
{
35+
/// <summary>
36+
/// Creates an instance of the <see cref="Core.POCO.Core.Features.Feature"/> and sets the value properties
37+
/// based on the DTO
38+
/// </summary>
39+
/// <param name="dto">
40+
/// The instance of the <see cref="Core.DTO.Core.Features.Feature"/>
41+
/// </param>
42+
/// <returns>
43+
/// an instance of <see cref="Core.POCO.Core.Features.Feature"/>
44+
/// </returns>
45+
/// <exception cref="ArgumentNullException">
46+
/// thrown when <paramref name="dto"/> is null
47+
/// </exception>
48+
public Core.POCO.Core.Features.Feature Create(Core.DTO.Core.Features.Feature dto)
49+
{
50+
if (dto == null)
51+
{
52+
throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
53+
}
54+
55+
var poco = new Core.POCO.Core.Features.Feature();
56+
57+
poco.Id = dto.Id;
58+
poco.AliasIds = dto.AliasIds;
59+
poco.DeclaredName = dto.DeclaredName;
60+
poco.DeclaredShortName = dto.DeclaredShortName;
61+
poco.Direction = dto.Direction;
62+
poco.ElementId = dto.ElementId;
63+
poco.IsAbstract = dto.IsAbstract;
64+
poco.IsComposite = dto.IsComposite;
65+
poco.IsConstant = dto.IsConstant;
66+
poco.IsDerived = dto.IsDerived;
67+
poco.IsEnd = dto.IsEnd;
68+
poco.IsImpliedIncluded = dto.IsImpliedIncluded;
69+
poco.IsOrdered = dto.IsOrdered;
70+
poco.IsPortion = dto.IsPortion;
71+
poco.IsSufficient = dto.IsSufficient;
72+
poco.IsUnique = dto.IsUnique;
73+
poco.IsVariable = dto.IsVariable;
74+
75+
return poco;
76+
}
77+
}
78+
}
79+
80+
// ------------------------------------------------------------------------------------------------
81+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
82+
// ------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)