Skip to content

Commit

Permalink
before change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jevonsflash committed Jul 26, 2022
1 parent 67621b1 commit 1528ba0
Showing 35 changed files with 314 additions and 836 deletions.
5 changes: 1 addition & 4 deletions Workshop.Core/DataBase/WorkshopDbContext.cs
Original file line number Diff line number Diff line change
@@ -4,16 +4,13 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Workshop.Core.Domains;
using Workshop.Core.Entites;

using Workshop.Core.Excel.Core.AdvancedTypes;

namespace Workshop.Core.DataBase
{
public class WorkshopDbContext : DbContext
{
public DbSet<EmployeeEntity> Employee { get; set; }
public DbSet<Log> Log { get; set; }

public WorkshopDbContext(DbContextOptions<WorkshopDbContext> options)
: base(options)
14 changes: 0 additions & 14 deletions Workshop.Core/Domains/IEntity.cs

This file was deleted.

36 changes: 0 additions & 36 deletions Workshop.Core/Domains/Log.cs

This file was deleted.

8 changes: 2 additions & 6 deletions Workshop.Core/Excel/Core/AdvancedTypes/CommentedType.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workshop.Core.Domains;
using Workshop.Core.Excel.Attributes;

namespace Workshop.Core.Excel.Core.AdvancedTypes
{
public class CommentedType<T> : ICommentedType, IEntity<Guid>
public class CommentedType<T> : ICommentedType
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Exportable(ignore: true)]
public Guid Id { get; set; }


public T Value { get; set; }
public string Comment { get; set; }

6 changes: 1 addition & 5 deletions Workshop.Core/Excel/Core/AdvancedTypes/FormulatedType.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workshop.Core.Domains;
using Workshop.Core.Excel.Attributes;

namespace Workshop.Core.Excel.Core.AdvancedTypes
{

public class FormulatedType<T> : IFormulatedType, IEntity<Guid>
public class FormulatedType<T> : IFormulatedType
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Exportable(ignore: true)]
public Guid Id { get; set; }
public T Value { get; set; }
public string Formula { get; set; }

7 changes: 2 additions & 5 deletions Workshop.Core/Excel/Core/AdvancedTypes/FullAdvancedType.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workshop.Core.Domains;
using Workshop.Core.Excel.Attributes;
using Workshop.Core.Excel.Models;

namespace Workshop.Core.Excel.Core.AdvancedTypes
{
public class FullAdvancedType<T> : IFullAdvancedType, IEntity<Guid>
public class FullAdvancedType<T> : IFullAdvancedType
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Exportable(ignore: true)]
public Guid Id { get; set; }

public T Value { get; set; }
public string Comment { get; set; }
public string Formula { get; set; }
8 changes: 2 additions & 6 deletions Workshop.Core/Excel/Core/AdvancedTypes/StyledType.cs
Original file line number Diff line number Diff line change
@@ -2,17 +2,13 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workshop.Core.Domains;

using Workshop.Core.Excel.Attributes;

namespace Workshop.Core.Excel.Core.AdvancedTypes
{
public class StyledType<T> : IStyledType, IEntity<Guid>
public class StyledType<T> : IStyledType
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Exportable(ignore: true)]
public Guid Id { get; set; }

public T Value { get; set; }
public StyleMetadata StyleMetadata { get; set; }

7 changes: 1 addition & 6 deletions Workshop.Core/Excel/Models/StyleMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workshop.Core.Domains;
using Workshop.Core.Excel.Attributes;

namespace Workshop.Core.Excel.Models
{
public class StyleMetadata : IEntity<Guid>
public class StyleMetadata
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Exportable(ignore: true)]
public Guid Id { get; set; }

public string FontColor { get; set; }
public string FontName { get; set; }
public short FontSize { get; set; }
Loading

0 comments on commit 1528ba0

Please sign in to comment.