-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b235890
commit 8a04b21
Showing
3 changed files
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions
42
ASP.NET Core/src/Models/EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
//using System; | ||
//using Microsoft.EntityFrameworkCore; | ||
//using Microsoft.EntityFrameworkCore.Metadata; | ||
using System; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
|
||
//namespace EJ2APIServices.Models | ||
//{ | ||
// public partial class EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext : DbContext | ||
// { | ||
namespace EJ2APIServices.Models | ||
{ | ||
public partial class EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext : DbContext | ||
{ | ||
|
||
|
||
// public EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext(DbContextOptions<EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext> options) | ||
// : base(options) | ||
// { | ||
// } | ||
public EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext(DbContextOptions<EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext> options) | ||
: base(options) | ||
{ | ||
} | ||
|
||
|
||
// public virtual DbSet<DiagramData> DiagramData { get; set; } | ||
public virtual DbSet<DiagramData> DiagramData { get; set; } | ||
|
||
// protected override void OnModelCreating(ModelBuilder modelBuilder) | ||
// { | ||
// modelBuilder.Entity<DiagramData>(entity => | ||
// { | ||
// entity.Property(e => e.DiagramName).HasMaxLength(50); | ||
// }); | ||
// } | ||
// } | ||
//} | ||
protected override void OnModelCreating(ModelBuilder modelBuilder) | ||
{ | ||
modelBuilder.Entity<DiagramData>(entity => | ||
{ | ||
entity.Property(e => e.DiagramName).HasMaxLength(50); | ||
}); | ||
} | ||
} | ||
} |