From ecd334e5af02eb857d8329a18e8e0bffbd49ce15 Mon Sep 17 00:00:00 2001 From: Alex Keh Date: Wed, 13 Dec 2023 14:24:28 -0800 Subject: [PATCH 1/3] Update create-model-save-query-scaffold-efc6.cs Updates for EFC8 and new license. --- .../create-model-save-query-scaffold-efc6.cs | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs b/samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs index d119df96..495d92c2 100644 --- a/samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs +++ b/samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs @@ -1,10 +1,10 @@ using Microsoft.EntityFrameworkCore; -namespace OracleEFCore6 +namespace OracleEFCore { class Program { - //Demonstrates how to get started using Oracle Entity Framework Core 6 + //Demonstrates how to get started using Oracle Entity Framework Core 6 and higher //Code connects to on-premises Oracle DB or walletless Oracle Autonomous DB public class BloggingContext : DbContext @@ -61,20 +61,21 @@ static void Main(string[] args) } } -/* Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved. */ -/* Copyright (c) .NET Foundation and Contributors */ +/* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. */ /****************************************************************************** - * 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 + * You may not use the identified files except in compliance with The MIT + * License (the "License.") + * + * You may obtain a copy of the License at + * https://github.com/oracle/dotnet-db-samples/blob/master/LICENSE.txt + * + * 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. * - * 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. - * *****************************************************************************/ From 17da7d27a768e3596c6b1651c29c9896926adab0 Mon Sep 17 00:00:00 2001 From: Alex Keh Date: Wed, 13 Dec 2023 14:31:23 -0800 Subject: [PATCH 2/3] Rename create-model-save-query-scaffold-efc6.cs to create-model-save-query-scaffold-efc.cs Updated file name --- ...y-scaffold-efc6.cs => create-model-save-query-scaffold-efc.cs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename samples/ef-core/get-started/{create-model-save-query-scaffold-efc6.cs => create-model-save-query-scaffold-efc.cs} (100%) diff --git a/samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs b/samples/ef-core/get-started/create-model-save-query-scaffold-efc.cs similarity index 100% rename from samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs rename to samples/ef-core/get-started/create-model-save-query-scaffold-efc.cs From 0e6187bb40b8b12cbcce9af1f4cb9657514748bc Mon Sep 17 00:00:00 2001 From: Alex Keh Date: Wed, 13 Dec 2023 14:32:51 -0800 Subject: [PATCH 3/3] Update README.md --- samples/ef-core/get-started/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ef-core/get-started/README.md b/samples/ef-core/get-started/README.md index 67f4ca6f..ffc6095e 100644 --- a/samples/ef-core/get-started/README.md +++ b/samples/ef-core/get-started/README.md @@ -1,7 +1,7 @@ # Getting Started with Oracle Entity Framework Core There are two sets of sample code showing how to perform several basic tasks with Oracle EF Core. -1. [Getting Started with Oracle EF Core 6 and 7](https://github.com/oracle/dotnet-db-samples/blob/master/samples/ef-core/get-started/create-model-save-query-scaffold-efc6.cs) +1. [Getting Started with Oracle EF Core 6 and higher](https://github.com/oracle/dotnet-db-samples/blob/master/samples/ef-core/get-started/create-model-save-query-scaffold-efc.cs) 2. [Getting Started with Oracle EF Core 5 and earlier releases](https://github.com/oracle/dotnet-db-samples/blob/master/samples/ef-core/get-started/create-model-save-query-scaffold.cs) The sample code and below instructions show how to create a data model, save it to an Oracle database, insert data, query the data, use migrations to modify the schema, and reverse engineer.