diff --git a/MongODM.sln.licenseheader b/MongODM.sln.licenseheader new file mode 100644 index 00000000..b79a00d5 --- /dev/null +++ b/MongODM.sln.licenseheader @@ -0,0 +1,47 @@ +extensions: designer.cs generated.cs +extensions: .cs .cpp .h +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +extensions: .cshtml +@* Copyright 2020-present Etherna Sagl + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *@ + +extensions: .xml .config .xsd + diff --git a/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs b/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs index 9f58fbb9..d54e3144 100644 --- a/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs +++ b/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; using System.Threading; diff --git a/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs b/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs index 79f45266..4f9325e8 100644 --- a/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs +++ b/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs @@ -1,4 +1,18 @@ -namespace Etherna.ExecContext.AsyncLocal +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.ExecContext.AsyncLocal { /// /// The handler for an initialization. diff --git a/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs b/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs index f7b12877..1695d3ec 100644 --- a/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs +++ b/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.ExecContext.AsyncLocal { diff --git a/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs b/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs index 8e9fb773..51f1885c 100644 --- a/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs +++ b/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.ExecContext.AsyncLocal { diff --git a/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs b/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs index f3564b19..6236049c 100644 --- a/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs +++ b/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs @@ -1,4 +1,18 @@ -namespace Etherna.ExecContext.AsyncLocal +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.ExecContext.AsyncLocal { /// /// Interface used by for comunicate with its diff --git a/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs b/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs index 60caf978..41998bfd 100644 --- a/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs +++ b/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.ExecContext.Exceptions { diff --git a/src/ExecutionContext/ExecutionContextSelector.cs b/src/ExecutionContext/ExecutionContextSelector.cs index db04f1b7..18d4c240 100644 --- a/src/ExecutionContext/ExecutionContextSelector.cs +++ b/src/ExecutionContext/ExecutionContextSelector.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; namespace Etherna.ExecContext diff --git a/src/ExecutionContext/IExecutionContext.cs b/src/ExecutionContext/IExecutionContext.cs index 10a6d294..90f1b92c 100644 --- a/src/ExecutionContext/IExecutionContext.cs +++ b/src/ExecutionContext/IExecutionContext.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.ExecContext { diff --git a/src/ExecutionContext/Properties/AssemblyInfo.cs b/src/ExecutionContext/Properties/AssemblyInfo.cs index fbf5dc36..17f09a54 100644 --- a/src/ExecutionContext/Properties/AssemblyInfo.cs +++ b/src/ExecutionContext/Properties/AssemblyInfo.cs @@ -1,4 +1,18 @@ -using System.Runtime.CompilerServices; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] [assembly: InternalsVisibleTo("ExecutionContext.Tests")] diff --git a/src/ExecutionContext/Properties/GlobalSuppressions.cs b/src/ExecutionContext/Properties/GlobalSuppressions.cs index 8035245b..f8120b38 100644 --- a/src/ExecutionContext/Properties/GlobalSuppressions.cs +++ b/src/ExecutionContext/Properties/GlobalSuppressions.cs @@ -1,4 +1,18 @@ -// This file is used by Code Analysis to maintain SuppressMessage +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. diff --git a/src/MongODM.AspNetCore/HttpContextExecutionContext.cs b/src/MongODM.AspNetCore/HttpContextExecutionContext.cs index 2b7a8262..6d234d9e 100644 --- a/src/MongODM.AspNetCore/HttpContextExecutionContext.cs +++ b/src/MongODM.AspNetCore/HttpContextExecutionContext.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Microsoft.AspNetCore.Http; using System.Collections.Generic; diff --git a/src/MongODM.AspNetCore/MongODMConfiguration.cs b/src/MongODM.AspNetCore/MongODMConfiguration.cs index 7b73a847..957782f1 100644 --- a/src/MongODM.AspNetCore/MongODMConfiguration.cs +++ b/src/MongODM.AspNetCore/MongODMConfiguration.cs @@ -1,4 +1,18 @@ -using Microsoft.Extensions.DependencyInjection; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Microsoft.Extensions.DependencyInjection; namespace Etherna.MongODM.AspNetCore { diff --git a/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs b/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs index 910067e1..2ae9f8e4 100644 --- a/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs +++ b/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.ExecContext.AsyncLocal; using Etherna.MongODM; using Etherna.MongODM.AspNetCore; diff --git a/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs b/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs index 6059ab62..65dca739 100644 --- a/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs +++ b/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Attributes { diff --git a/src/MongODM.Core/DbContext.cs b/src/MongODM.Core/DbContext.cs index 770c1bb9..a3ff89c1 100644 --- a/src/MongODM.Core/DbContext.cs +++ b/src/MongODM.Core/DbContext.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Migration; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Migration; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; diff --git a/src/MongODM.Core/DbContextOptions.cs b/src/MongODM.Core/DbContextOptions.cs index eaa49bf8..f1d4375a 100644 --- a/src/MongODM.Core/DbContextOptions.cs +++ b/src/MongODM.Core/DbContextOptions.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Serialization; using System.Linq; namespace Etherna.MongODM diff --git a/src/MongODM.Core/Exceptions/EntityNotFoundException.cs b/src/MongODM.Core/Exceptions/EntityNotFoundException.cs index fbcd8754..c2b7fe22 100644 --- a/src/MongODM.Core/Exceptions/EntityNotFoundException.cs +++ b/src/MongODM.Core/Exceptions/EntityNotFoundException.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Exceptions { diff --git a/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs b/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs index bf1fb4d6..f57a0dce 100644 --- a/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs +++ b/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Exceptions { diff --git a/src/MongODM.Core/Extensions/ClassMapExtensions.cs b/src/MongODM.Core/Extensions/ClassMapExtensions.cs index aea66a6e..ab18f7a8 100644 --- a/src/MongODM.Core/Extensions/ClassMapExtensions.cs +++ b/src/MongODM.Core/Extensions/ClassMapExtensions.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Serialization.Serializers; using MongoDB.Bson.Serialization; using System; diff --git a/src/MongODM.Core/Extensions/EnumerableExtensions.cs b/src/MongODM.Core/Extensions/EnumerableExtensions.cs index def59d78..9840bf5f 100644 --- a/src/MongODM.Core/Extensions/EnumerableExtensions.cs +++ b/src/MongODM.Core/Extensions/EnumerableExtensions.cs @@ -1,4 +1,18 @@ -using MongoDB.Driver.Linq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Driver.Linq; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/MongODM.Core/GlobalSuppressions.cs b/src/MongODM.Core/GlobalSuppressions.cs index 174ec059..6f092ce9 100644 --- a/src/MongODM.Core/GlobalSuppressions.cs +++ b/src/MongODM.Core/GlobalSuppressions.cs @@ -1,4 +1,17 @@ - +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given diff --git a/src/MongODM.Core/IDbContext.cs b/src/MongODM.Core/IDbContext.cs index 2ffc85df..f37de024 100644 --- a/src/MongODM.Core/IDbContext.cs +++ b/src/MongODM.Core/IDbContext.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/src/MongODM.Core/IDbContextInitializable.cs b/src/MongODM.Core/IDbContextInitializable.cs index 89e61e46..db8d0f86 100644 --- a/src/MongODM.Core/IDbContextInitializable.cs +++ b/src/MongODM.Core/IDbContextInitializable.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM { public interface IDbContextInitializable { diff --git a/src/MongODM.Core/Migration/MongoCollectionMigration.cs b/src/MongODM.Core/Migration/MongoCollectionMigration.cs index de10a709..9d550826 100644 --- a/src/MongODM.Core/Migration/MongoCollectionMigration.cs +++ b/src/MongODM.Core/Migration/MongoCollectionMigration.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; using MongoDB.Driver; using System; diff --git a/src/MongODM.Core/Migration/MongoDocumentMigration.cs b/src/MongODM.Core/Migration/MongoDocumentMigration.cs index 5ddbb4da..9b3d854a 100644 --- a/src/MongODM.Core/Migration/MongoDocumentMigration.cs +++ b/src/MongODM.Core/Migration/MongoDocumentMigration.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using MongoDB.Bson; diff --git a/src/MongODM.Core/Migration/MongoMigrationBase.cs b/src/MongODM.Core/Migration/MongoMigrationBase.cs index 53a67fdc..30d84690 100644 --- a/src/MongODM.Core/Migration/MongoMigrationBase.cs +++ b/src/MongODM.Core/Migration/MongoMigrationBase.cs @@ -1,4 +1,18 @@ -using System.Threading; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Threading; using System.Threading.Tasks; namespace Etherna.MongODM.Migration diff --git a/src/MongODM.Core/Models/IEntityModel.cs b/src/MongODM.Core/Models/IEntityModel.cs index ffd76256..355f7e4d 100644 --- a/src/MongODM.Core/Models/IEntityModel.cs +++ b/src/MongODM.Core/Models/IEntityModel.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Models { diff --git a/src/MongODM.Core/Models/IFileModel.cs b/src/MongODM.Core/Models/IFileModel.cs index bddcf289..c1445760 100644 --- a/src/MongODM.Core/Models/IFileModel.cs +++ b/src/MongODM.Core/Models/IFileModel.cs @@ -1,4 +1,18 @@ -using System.IO; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.IO; namespace Etherna.MongODM.Models { diff --git a/src/MongODM.Core/Models/IModel.cs b/src/MongODM.Core/Models/IModel.cs index 5fec005e..222f6f68 100644 --- a/src/MongODM.Core/Models/IModel.cs +++ b/src/MongODM.Core/Models/IModel.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.Models { diff --git a/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs b/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs index eaad5579..c505d01b 100644 --- a/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs +++ b/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using Etherna.MongODM.Attributes; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/ProxyModels/IAuditable.cs b/src/MongODM.Core/ProxyModels/IAuditable.cs index dd06ab5c..91893fe9 100644 --- a/src/MongODM.Core/ProxyModels/IAuditable.cs +++ b/src/MongODM.Core/ProxyModels/IAuditable.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; using System.Reflection; namespace Etherna.MongODM.ProxyModels diff --git a/src/MongODM.Core/ProxyModels/IProxyGenerator.cs b/src/MongODM.Core/ProxyModels/IProxyGenerator.cs index 10902b19..f6b208fd 100644 --- a/src/MongODM.Core/ProxyModels/IProxyGenerator.cs +++ b/src/MongODM.Core/ProxyModels/IProxyGenerator.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.ProxyModels { diff --git a/src/MongODM.Core/ProxyModels/IReferenceable.cs b/src/MongODM.Core/ProxyModels/IReferenceable.cs index b842230d..7effea0a 100644 --- a/src/MongODM.Core/ProxyModels/IReferenceable.cs +++ b/src/MongODM.Core/ProxyModels/IReferenceable.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.ProxyModels { diff --git a/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs b/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs index 5f6232fe..dca32894 100644 --- a/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs +++ b/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/MongODM.Core/ProxyModels/ProxyGenerator.cs b/src/MongODM.Core/ProxyModels/ProxyGenerator.cs index 21190269..dca8690c 100644 --- a/src/MongODM.Core/ProxyModels/ProxyGenerator.cs +++ b/src/MongODM.Core/ProxyModels/ProxyGenerator.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using Etherna.MongODM.Models; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs b/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs index 3cf8425e..1c343485 100644 --- a/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs +++ b/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using Etherna.MongODM.Attributes; using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; diff --git a/src/MongODM.Core/ReflectionHelper.cs b/src/MongODM.Core/ReflectionHelper.cs index 887881bd..f6b38b3c 100644 --- a/src/MongODM.Core/ReflectionHelper.cs +++ b/src/MongODM.Core/ReflectionHelper.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; diff --git a/src/MongODM.Core/Repositories/CollectionRepository.cs b/src/MongODM.Core/Repositories/CollectionRepository.cs index 04e4a460..9c0909c2 100644 --- a/src/MongODM.Core/Repositories/CollectionRepository.cs +++ b/src/MongODM.Core/Repositories/CollectionRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Exceptions; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Exceptions; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization; diff --git a/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs b/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs index 4cae2fdb..2adea8f9 100644 --- a/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs +++ b/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs @@ -1,4 +1,18 @@ -using MongoDB.Driver; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Driver; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/Repositories/GridFSRepository.cs b/src/MongODM.Core/Repositories/GridFSRepository.cs index 57fb69fd..3aa65a33 100644 --- a/src/MongODM.Core/Repositories/GridFSRepository.cs +++ b/src/MongODM.Core/Repositories/GridFSRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Exceptions; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Exceptions; using Etherna.MongODM.Models; using Etherna.MongODM.Serialization; using MongoDB.Bson; diff --git a/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs b/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs index 5364a889..0ce4daab 100644 --- a/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs +++ b/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using System; namespace Etherna.MongODM.Repositories diff --git a/src/MongODM.Core/Repositories/ICollectionRepository.cs b/src/MongODM.Core/Repositories/ICollectionRepository.cs index 1eecf98c..f92628fd 100644 --- a/src/MongODM.Core/Repositories/ICollectionRepository.cs +++ b/src/MongODM.Core/Repositories/ICollectionRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Driver; using MongoDB.Driver.Linq; using System; diff --git a/src/MongODM.Core/Repositories/IGridFSRepository.cs b/src/MongODM.Core/Repositories/IGridFSRepository.cs index 6b8f4457..5d94d34e 100644 --- a/src/MongODM.Core/Repositories/IGridFSRepository.cs +++ b/src/MongODM.Core/Repositories/IGridFSRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Driver.GridFS; using System.IO; using System.Threading; diff --git a/src/MongODM.Core/Repositories/IRepository.cs b/src/MongODM.Core/Repositories/IRepository.cs index 73fa5760..7937552c 100644 --- a/src/MongODM.Core/Repositories/IRepository.cs +++ b/src/MongODM.Core/Repositories/IRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Serialization; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/Repositories/IRepositoryRegister.cs b/src/MongODM.Core/Repositories/IRepositoryRegister.cs index 3a75332e..ebadb330 100644 --- a/src/MongODM.Core/Repositories/IRepositoryRegister.cs +++ b/src/MongODM.Core/Repositories/IRepositoryRegister.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; namespace Etherna.MongODM.Repositories diff --git a/src/MongODM.Core/Repositories/RepositoryBase.cs b/src/MongODM.Core/Repositories/RepositoryBase.cs index 3d98ee07..36a412f2 100644 --- a/src/MongODM.Core/Repositories/RepositoryBase.cs +++ b/src/MongODM.Core/Repositories/RepositoryBase.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Exceptions; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Exceptions; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization; diff --git a/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs b/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs index d8c5b0fd..5f1279d6 100644 --- a/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs +++ b/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Repositories +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Repositories { public abstract class RepositoryOptionsBase { diff --git a/src/MongODM.Core/Repositories/RepositoryRegister.cs b/src/MongODM.Core/Repositories/RepositoryRegister.cs index ad1dec50..156b6a2e 100644 --- a/src/MongODM.Core/Repositories/RepositoryRegister.cs +++ b/src/MongODM.Core/Repositories/RepositoryRegister.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/src/MongODM.Core/Serialization/DocumentSchema.cs b/src/MongODM.Core/Serialization/DocumentSchema.cs index 6c597760..c3ba3089 100644 --- a/src/MongODM.Core/Serialization/DocumentSchema.cs +++ b/src/MongODM.Core/Serialization/DocumentSchema.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System; namespace Etherna.MongODM.Serialization diff --git a/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs b/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs index cc4729d2..028f795a 100644 --- a/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs +++ b/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs b/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs index 22eb9520..ce687f32 100644 --- a/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs +++ b/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Serialization.Modifiers; using Etherna.MongODM.Serialization.Serializers; using MongoDB.Bson.Serialization; diff --git a/src/MongODM.Core/Serialization/DocumentVersion.cs b/src/MongODM.Core/Serialization/DocumentVersion.cs index b31d4082..f5247cf3 100644 --- a/src/MongODM.Core/Serialization/DocumentVersion.cs +++ b/src/MongODM.Core/Serialization/DocumentVersion.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Text; using System.Text.RegularExpressions; diff --git a/src/MongODM.Core/Serialization/EntityMember.cs b/src/MongODM.Core/Serialization/EntityMember.cs index 0c33ad15..e85b5eaf 100644 --- a/src/MongODM.Core/Serialization/EntityMember.cs +++ b/src/MongODM.Core/Serialization/EntityMember.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; namespace Etherna.MongODM.Serialization { diff --git a/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs b/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs index c26927e0..50ca3ebe 100644 --- a/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs +++ b/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.IO; namespace Etherna.MongODM.Serialization diff --git a/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs b/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs index c895749f..a063a744 100644 --- a/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs +++ b/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.IO; namespace Etherna.MongODM.Serialization diff --git a/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs b/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs index 149b6bc2..76c7264b 100644 --- a/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs +++ b/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/MongODM.Core/Serialization/IModelSerializerCollector.cs b/src/MongODM.Core/Serialization/IModelSerializerCollector.cs index 6a59c0d5..910ccbca 100644 --- a/src/MongODM.Core/Serialization/IModelSerializerCollector.cs +++ b/src/MongODM.Core/Serialization/IModelSerializerCollector.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Serialization +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Serialization { public interface IModelSerializerCollector { diff --git a/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs b/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs index f61f0105..c662913c 100644 --- a/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs +++ b/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.ExecContext.Exceptions; using System; using System.Collections; diff --git a/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs b/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs index ad6d5fb0..d663d160 100644 --- a/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs +++ b/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Serialization.Modifiers { diff --git a/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs b/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs index 8d43886a..b5f56a85 100644 --- a/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs +++ b/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.ExecContext.Exceptions; using System; using System.Collections; diff --git a/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs b/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs index 42bb6b07..ea9bec24 100644 --- a/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs +++ b/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using System; namespace Etherna.MongODM.Serialization.Modifiers diff --git a/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs b/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs index 61982577..e6c21e28 100644 --- a/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Options; using MongoDB.Bson.Serialization.Serializers; using System.Collections.Generic; diff --git a/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs b/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs index f108bf27..9e980173 100644 --- a/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System.Collections.Generic; diff --git a/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs b/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs index a8266eca..a2c0d59c 100644 --- a/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization.Modifiers; using Etherna.MongODM.Utility; diff --git a/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs b/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs index 77778436..f8cd935d 100644 --- a/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.IO; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; diff --git a/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs b/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs index 0b117bb6..0cf522a6 100644 --- a/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver.GeoJsonObjectModel; diff --git a/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs b/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs index 908a7e28..43a36124 100644 --- a/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs b/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs index 2e48380b..fca2af9b 100644 --- a/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System.Collections.Generic; namespace Etherna.MongODM.Serialization.Serializers diff --git a/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs b/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs index 0e3705cb..fac27919 100644 --- a/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Serialization.Serializers +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Serialization.Serializers { public interface IReferenceContainerSerializer : IClassMapContainerSerializer { diff --git a/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs b/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs index d3eff7ab..a5bac97e 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Options; using MongoDB.Bson.Serialization.Serializers; using System.Collections.Generic; diff --git a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs index eecdcf27..15084c20 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization.Modifiers; using Etherna.MongODM.Utility; diff --git a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs index 8b5ad16f..3b8bb892 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs index 06213407..6e48f049 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Tasks/ITaskRunner.cs b/src/MongODM.Core/Tasks/ITaskRunner.cs index 51af70d0..aa65ffa7 100644 --- a/src/MongODM.Core/Tasks/ITaskRunner.cs +++ b/src/MongODM.Core/Tasks/ITaskRunner.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; namespace Etherna.MongODM.Tasks diff --git a/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs b/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs index e72fdbd6..22c882ca 100644 --- a/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs +++ b/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/MongODM.Core/Tasks/Queues.cs b/src/MongODM.Core/Tasks/Queues.cs index d44fde97..437c2fea 100644 --- a/src/MongODM.Core/Tasks/Queues.cs +++ b/src/MongODM.Core/Tasks/Queues.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Tasks +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Tasks { public class Queues { diff --git a/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs b/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs index 67b24a67..0bc36292 100644 --- a/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs +++ b/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization.Modifiers; using MongoDB.Driver; diff --git a/src/MongODM.Core/Utility/DBCache.cs b/src/MongODM.Core/Utility/DBCache.cs index 6eaa5b7d..4a34a389 100644 --- a/src/MongODM.Core/Utility/DBCache.cs +++ b/src/MongODM.Core/Utility/DBCache.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.MongODM.Models; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/Utility/DBMaintainer.cs b/src/MongODM.Core/Utility/DBMaintainer.cs index e871015a..333d76f1 100644 --- a/src/MongODM.Core/Utility/DBMaintainer.cs +++ b/src/MongODM.Core/Utility/DBMaintainer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Tasks; using MongoDB.Driver; using System; diff --git a/src/MongODM.Core/Utility/DbContextDependencies.cs b/src/MongODM.Core/Utility/DbContextDependencies.cs index 3eb308f3..3fb8c1c5 100644 --- a/src/MongODM.Core/Utility/DbContextDependencies.cs +++ b/src/MongODM.Core/Utility/DbContextDependencies.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/src/MongODM.Core/Utility/IDBCache.cs b/src/MongODM.Core/Utility/IDBCache.cs index 7979c869..dd5e111d 100644 --- a/src/MongODM.Core/Utility/IDBCache.cs +++ b/src/MongODM.Core/Utility/IDBCache.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using System.Collections.Generic; namespace Etherna.MongODM.Utility diff --git a/src/MongODM.Core/Utility/IDBMaintainer.cs b/src/MongODM.Core/Utility/IDBMaintainer.cs index db9c9da3..d66df72c 100644 --- a/src/MongODM.Core/Utility/IDBMaintainer.cs +++ b/src/MongODM.Core/Utility/IDBMaintainer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; namespace Etherna.MongODM.Utility { diff --git a/src/MongODM.Core/Utility/IDbContextDependencies.cs b/src/MongODM.Core/Utility/IDbContextDependencies.cs index bc8d335b..0abd0819 100644 --- a/src/MongODM.Core/Utility/IDbContextDependencies.cs +++ b/src/MongODM.Core/Utility/IDbContextDependencies.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs b/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs index 915b0aab..9191b995 100644 --- a/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs +++ b/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext.AsyncLocal; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext.AsyncLocal; using Hangfire.Server; using System; using System.Collections.Generic; diff --git a/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs b/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs index d86d0da9..65863f95 100644 --- a/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs +++ b/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext.AsyncLocal; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext.AsyncLocal; using Etherna.MongODM.HF.Filters; using Etherna.MongODM.Tasks; using Hangfire; diff --git a/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs b/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs index 16644c88..362af942 100644 --- a/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs +++ b/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Tasks; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Tasks; using Hangfire; using System; using System.Collections.Generic; diff --git a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs index cda2b389..3e8bea37 100644 --- a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs +++ b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs @@ -1,4 +1,18 @@ -using Moq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Moq; using Xunit; namespace Etherna.ExecContext.AsyncLocal diff --git a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs index cb5d3059..b97c9d9d 100644 --- a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs +++ b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs @@ -1,4 +1,18 @@ -using System.Threading.Tasks; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Threading.Tasks; using Xunit; namespace Etherna.ExecContext.AsyncLocal diff --git a/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs b/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs index 5e0c1747..793d4f95 100644 --- a/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs +++ b/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs @@ -1,4 +1,18 @@ -using Moq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Moq; using System; using System.Collections.Generic; using Xunit; diff --git a/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs b/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs index da09fd75..7c084e4d 100644 --- a/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs +++ b/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using System.Collections.Generic; using System.Linq; diff --git a/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs b/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs index ffff574b..98ca63e3 100644 --- a/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs +++ b/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Comparers; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Comparers; using Etherna.MongODM.Models; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs b/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs index 4dba6db5..46482745 100644 --- a/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs +++ b/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs @@ -1,4 +1,18 @@ -using Moq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Moq; using System; using System.Linq.Expressions; diff --git a/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs b/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs index 533d7a08..33754232 100644 --- a/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs +++ b/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Models { diff --git a/test/MongODM.Core.Tests/Models/FakeModel.cs b/test/MongODM.Core.Tests/Models/FakeModel.cs index a532c116..1b395bd3 100644 --- a/test/MongODM.Core.Tests/Models/FakeModel.cs +++ b/test/MongODM.Core.Tests/Models/FakeModel.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.Models { diff --git a/test/MongODM.Core.Tests/Models/FakeModelProxy.cs b/test/MongODM.Core.Tests/Models/FakeModelProxy.cs index 5d7e3fa0..109a1d09 100644 --- a/test/MongODM.Core.Tests/Models/FakeModelProxy.cs +++ b/test/MongODM.Core.Tests/Models/FakeModelProxy.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Models +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Models { public class FakeModelProxy : FakeModel { diff --git a/test/MongODM.Core.Tests/Models/ModelBase.cs b/test/MongODM.Core.Tests/Models/ModelBase.cs index c1eb4e2a..dcc80aa0 100644 --- a/test/MongODM.Core.Tests/Models/ModelBase.cs +++ b/test/MongODM.Core.Tests/Models/ModelBase.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.Models { diff --git a/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs b/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs index 473ba8ae..32c77e43 100644 --- a/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs +++ b/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.MockHelpers; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.MockHelpers; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories;