Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msallin committed May 2, 2020
1 parent 4c5ad2a commit f21bb45
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 70 deletions.
28 changes: 14 additions & 14 deletions SQLite.CodeFirst.Console/Entity/FooCompositeKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@

namespace SQLite.CodeFirst.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooCompositeKey
{
[Key, Column(Order = 1)]
public int Id { get; set; }
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooCompositeKey
{
[Key, Column(Order = 1)]
public int Id { get; set; }

[Key, Column(Order = 2), StringLength(20)]
public string Version { get; set; }
[Key, Column(Order = 2), StringLength(20)]
public string Version { get; set; }

[StringLength(255)]
public string Name { get; set; }
[StringLength(255)]
public string Name { get; set; }

public virtual ICollection<FooRelationshipA> FooeyACollection { get; set; }
public virtual ICollection<FooRelationshipA> FooeyACollection { get; set; }

public virtual ICollection<FooRelationshipB> FooeyBCollection { get; set; }
}
public virtual ICollection<FooRelationshipB> FooeyBCollection { get; set; }
}
}
20 changes: 10 additions & 10 deletions SQLite.CodeFirst.Console/Entity/FooRelationshipA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

namespace SQLite.CodeFirst.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipA
{
public int Id { get; set; }
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipA
{
public int Id { get; set; }

[StringLength(255)]
public string Name { get; set; }
[StringLength(255)]
public string Name { get; set; }

public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
}
20 changes: 10 additions & 10 deletions SQLite.CodeFirst.Console/Entity/FooRelationshipB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

namespace SQLite.CodeFirst.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipB
{
public int Id { get; set; }
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipB
{
public int Id { get; set; }

[StringLength(255)]
public string Name { get; set; }
[StringLength(255)]
public string Name { get; set; }

public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
}
2 changes: 1 addition & 1 deletion SQLite.CodeFirst.Console/Entity/IEntity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SQLite.CodeFirst.Console.Entity
{
interface IEntity
public interface IEntity
{
int Id { get; set; }
}
Expand Down
28 changes: 14 additions & 14 deletions SQLite.CodeFirst.NetCore.Console/Entity/FooCompositeKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@

namespace SQLite.CodeFirst.NetCore.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooCompositeKey
{
[Key, Column(Order = 1)]
public int Id { get; set; }
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooCompositeKey
{
[Key, Column(Order = 1)]
public int Id { get; set; }

[Key, Column(Order = 2), StringLength(20)]
public string Version { get; set; }
[Key, Column(Order = 2), StringLength(20)]
public string Version { get; set; }

[StringLength(255)]
public string Name { get; set; }
[StringLength(255)]
public string Name { get; set; }

public virtual ICollection<FooRelationshipA> FooeyACollection { get; set; }
public virtual ICollection<FooRelationshipA> FooeyACollection { get; set; }

public virtual ICollection<FooRelationshipB> FooeyBCollection { get; set; }
}
public virtual ICollection<FooRelationshipB> FooeyBCollection { get; set; }
}
}
20 changes: 10 additions & 10 deletions SQLite.CodeFirst.NetCore.Console/Entity/FooRelationshipA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

namespace SQLite.CodeFirst.NetCore.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipA
{
public int Id { get; set; }
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipA
{
public int Id { get; set; }

[StringLength(255)]
public string Name { get; set; }
[StringLength(255)]
public string Name { get; set; }

public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
}
20 changes: 10 additions & 10 deletions SQLite.CodeFirst.NetCore.Console/Entity/FooRelationshipB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

namespace SQLite.CodeFirst.NetCore.Console.Entity
{
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipB
{
public int Id { get; set; }
/// <summary>
/// See https://github.com/msallin/SQLiteCodeFirst/issues/109
/// </summary>
public class FooRelationshipB
{
public int Id { get; set; }

[StringLength(255)]
public string Name { get; set; }
[StringLength(255)]
public string Name { get; set; }

public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
public virtual ICollection<FooCompositeKey> Fooey { get; set; }
}
}
2 changes: 1 addition & 1 deletion SQLite.CodeFirst.NetCore.Console/Entity/IEntity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SQLite.CodeFirst.NetCore.Console.Entity
{
interface IEntity
public interface IEntity
{
int Id { get; set; }
}
Expand Down

0 comments on commit f21bb45

Please sign in to comment.