Skip to content

Commit 7da3ee9

Browse files
committed
rename database to data
1 parent 49e3ede commit 7da3ee9

34 files changed

+63
-57
lines changed

api/Bartendro.Database/Commands/Command.cs renamed to api/Bartendro.Data/Commands/Command.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
using System.Collections.Generic;
33
using System.Threading.Tasks;
44
using Bartendro.Common.Extensions;
5-
using Bartendro.Database.Entities;
6-
using Bartendro.Database.Models;
7-
using Bartendro.Database.Services;
5+
using Bartendro.Data.Entities;
6+
using Bartendro.Data.Models;
7+
using Bartendro.Data.Services;
88
using FluentValidation.Results;
99
using Microsoft.EntityFrameworkCore;
1010

11-
namespace Bartendro.Database.Commands
11+
namespace Bartendro.Data.Commands
1212
{
1313
public interface ICommand<out T> where T : Entity, new()
1414
{

api/Bartendro.Database/Commands/CreateCommand.cs renamed to api/Bartendro.Data/Commands/CreateCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System.Threading.Tasks;
22
using Bartendro.Common.Services;
3-
using Bartendro.Database.Entities;
4-
using Bartendro.Database.Services;
3+
using Bartendro.Data.Entities;
4+
using Bartendro.Data.Services;
55
using FluentValidation;
66
using FluentValidation.Results;
77

8-
namespace Bartendro.Database.Commands
8+
namespace Bartendro.Data.Commands
99
{
1010
internal class CreateCommand<T> : Command<T> where T : Entity, new()
1111
{

api/Bartendro.Database/Commands/DeleteCommand.cs renamed to api/Bartendro.Data/Commands/DeleteCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System;
22
using System.Threading.Tasks;
33
using Bartendro.Common.Services;
4-
using Bartendro.Database.Entities;
5-
using Bartendro.Database.Services;
4+
using Bartendro.Data.Entities;
5+
using Bartendro.Data.Services;
66
using FluentValidation.Results;
77

8-
namespace Bartendro.Database.Commands
8+
namespace Bartendro.Data.Commands
99
{
1010
internal class DeleteCommand<T> : Command<T> where T : Entity, new()
1111
{

api/Bartendro.Database/Commands/UpdateCommand.cs renamed to api/Bartendro.Data/Commands/UpdateCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System;
22
using System.Threading.Tasks;
33
using Bartendro.Common.Services;
4-
using Bartendro.Database.Entities;
5-
using Bartendro.Database.Services;
4+
using Bartendro.Data.Entities;
5+
using Bartendro.Data.Services;
66
using FluentValidation;
77
using FluentValidation.Results;
88

9-
namespace Bartendro.Database.Commands
9+
namespace Bartendro.Data.Commands
1010
{
1111
internal class UpdateCommand<T> : Command<T> where T : Entity, new()
1212
{

api/Bartendro.Database/Entities/Entity.cs renamed to api/Bartendro.Data/Entities/Entity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.ComponentModel.DataAnnotations;
33
using System.ComponentModel.DataAnnotations.Schema;
44

5-
namespace Bartendro.Database.Entities
5+
namespace Bartendro.Data.Entities
66
{
77
public abstract class Entity
88
{

api/Bartendro.Database/Entities/Ingredient.cs renamed to api/Bartendro.Data/Entities/Ingredient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.ComponentModel.DataAnnotations;
22
using System.ComponentModel.DataAnnotations.Schema;
33

4-
namespace Bartendro.Database.Entities
4+
namespace Bartendro.Data.Entities
55
{
66
[Table("Ingredients")]
77
public class Ingredient : Entity

api/Bartendro.Database/Entities/Recipe.cs renamed to api/Bartendro.Data/Entities/Recipe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.ComponentModel.DataAnnotations;
33
using System.ComponentModel.DataAnnotations.Schema;
44

5-
namespace Bartendro.Database.Entities
5+
namespace Bartendro.Data.Entities
66
{
77
[Table("Recipes")]
88
public class Recipe : Entity

api/Bartendro.Database/Extensions/ServiceCollectionExtensions.cs renamed to api/Bartendro.Data/Extensions/ServiceCollectionExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System.Linq;
2-
using Bartendro.Database.Commands;
3-
using Bartendro.Database.Services;
4-
using Bartendro.Database.Validators;
2+
using Bartendro.Data.Commands;
3+
using Bartendro.Data.Services;
4+
using Bartendro.Data.Validators;
55
using FluentValidation;
66
using Microsoft.Extensions.DependencyInjection;
77

8-
namespace Bartendro.Database.Extensions
8+
namespace Bartendro.Data.Extensions
99
{
1010
public static class ServiceCollectionExtensions
1111
{

api/Bartendro.Database/Migrations/20191011230035_InitialMigration.Designer.cs renamed to api/Bartendro.Data/Migrations/20191011230035_InitialMigration.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)