Skip to content

Commit

Permalink
fix bug "create .cs file with name of table instead of it's type."
Browse files Browse the repository at this point in the history
  • Loading branch information
Cinorid committed May 8, 2023
1 parent 2abf06e commit 7ceacd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dbml2Ef/Dbml2Ef.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<PackAsTool>true</PackAsTool>
<AssemblyVersion>0.1.4</AssemblyVersion>
<AssemblyVersion>0.1.5</AssemblyVersion>
<AssemblyName>dbml2ef</AssemblyName>
<TargetFrameworks>net5.0;net6.0;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
<Title>Cinorid.dbml2ef</Title>
<PackageId>Cinorid.dbml2ef</PackageId>
<Version>0.1.4</Version>
<Version>0.1.5</Version>
<Authors>Cinorid (AhmadReza Saghari)</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Summary>linq2sql or Visual Studio DBML file to Entity Framework models converter</Summary>
Expand Down
2 changes: 1 addition & 1 deletion Dbml2Ef/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static void GenerateModelClass(Database dbModelDatabase, string namespac
{
foreach (var table in dbModelDatabase.Tables)
{
var fileName = table.Name + ".cs";
var fileName = table.Type + ".cs";
Console.WriteLine($"Generating {fileName}");

var strBuilder = new StringBuilder();
Expand Down

0 comments on commit 7ceacd2

Please sign in to comment.