Spanner Entity Framework Core 제공업체의 인증에 따라 서비스 계정 JSON 사용자 인증 정보 파일 위치를 GOOGLE_APPLICATION_CREDENTIALS 환경 변수에 제공해야 합니다. 그렇지 않으면 제공업체가 Google Cloud CLI gcloud 애플리케이션에 설정된 기본 사용자 인증 정보를 사용할 수도 있습니다.
Spanner Entity Framework Core 제공업체 사용
사용 가능한 기능, 제공업체 제한사항, 제공업체 사용 방법에 대한 권장 사항, 코드 샘플에 대한 자세한 내용은 GitHub의 참고 문서를 확인하세요.
다음 단계
Spanner Entity Framework Core 제공업체를 사용하는 방법에 대한 코드 예시를 확인하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-05(UTC)"],[],[],null,["# Using Entity Framework Core with Spanner\n\n| **PostgreSQL interface note:** The Spanner Entity Framework Core provider isn't supported in PostgreSQL databases.\n\n\u003cbr /\u003e\n\nThe [Spanner Entity Framework Core provider](https://github.com/googleapis/dotnet-spanner-entity-framework) lets you\ncreate a Spanner database, run queries, and update data through an\napplication using [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/). The\nprovider is compatible with\n[Microsoft.EntityFrameworkCore 8](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/8.0).\n\nSet up the Spanner Entity Framework Core provider\n-------------------------------------------------\n\nTo set up the Spanner Entity Framework Core provider in your application, add the following\ndependency. \n\n \u003cProject Sdk=\"Microsoft.NET.Sdk\"\u003e\n\n \u003cPropertyGroup\u003e\n \u003cTargetFramework\u003enet8.0\u003c/TargetFramework\u003e\n \u003cOutputType\u003eExe\u003c/OutputType\u003e\n \u003c/PropertyGroup\u003e\n\n ...\n\n \u003cItemGroup\u003e\n \u003cPackageReference Include=\"Google.Cloud.EntityFrameworkCore.Spanner\" Version=\"3.2.0\" /\u003e\n \u003c/ItemGroup\u003e\n\n ...\n\n \u003c/Project\u003e\n\nAs authentication for the Spanner Entity Framework Core provider, the [service account JSON\ncredentials](/docs/authentication/getting-started) file location should be provided in the\n`GOOGLE_APPLICATION_CREDENTIALS` environment variable. Otherwise, the provider\ncan also use the default credentials set in the Google Cloud CLI `gcloud`\napplication.\n\nUse the Spanner Entity Framework Core provider\n----------------------------------------------\n\nFor more information about the available features, limitations of the provider,\nrecommendations on how to use the provider, and for code samples, consult\nthe [reference documentation](https://github.com/googleapis/dotnet-spanner-entity-framework#readme) on\nGitHub.\n\nWhat's next\n-----------\n\n- Checkout the [code examples](https://github.com/googleapis/dotnet-spanner-entity-framework/tree/master/Google.Cloud.EntityFrameworkCore.Spanner.Samples) on how to use the Spanner Entity Framework Core provider.\n- View the repository for the Spanner Entity Framework Core provider on [GitHub](https://github.com/googleapis/dotnet-spanner-entity-framework).\n- File a [GitHub issue](https://github.com/googleapis/dotnet-spanner-entity-framework/issues) to report a bug or ask a question about the Spanner Entity Framework provider.\n- Learn more about [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/).\n- Learn more about [NuGet](https://www.nuget.org/).\n- Learn about authorization and authentication credentials in [Getting started with authentication](/docs/authentication/getting-started)."]]