This file contains hidden or 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
using Domain.Entities; | |
namespace Repository.Repositories | |
{ | |
public class TeamRepository : RepositoryBase<Team> | |
{ | |
} | |
} |
This file contains hidden or 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
using Domain.Entities; | |
namespace Repository.Repositories | |
{ | |
public class PlayerRepository : RepositoryBase<Player> | |
{ | |
} | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data.SqlClient; | |
using System.Linq.Expressions; | |
using Domain.Contracts; | |
using Domain.Entities; | |
using Dommel; | |
namespace Repository |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
using Domain.Entities; | |
namespace Domain.Contracts | |
{ | |
public interface IRepositoryBase<TEntity> where TEntity : BaseEntity | |
{ | |
IEnumerable<TEntity> GetAll(); | |
TEntity GetById(int id); |
This file contains hidden or 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
namespace Domain.Entities | |
{ | |
public class Team : BaseEntity | |
{ | |
public string Name { get; set; } | |
} | |
} |
This file contains hidden or 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
namespace Domain.Entities | |
{ | |
public class Player : BaseEntity | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } | |
// declarar as colunas de chave estrangeira da tabela | |
public int TeamId { get; set; } | |
public Team Team { get; set; } |
This file contains hidden or 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
namespace Domain.Entities | |
{ | |
public abstract class BaseEntity | |
{ | |
public int Id { get; set; } | |
} | |
} |
This file contains hidden or 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
USE master; | |
GO | |
--ALTER DATABASE Dapper_DB SET OFFLINE WITH ROLLBACK IMMEDIATE; DROP DATABASE Dapper_DB | |
CREATE DATABASE Dapper_DB; | |
GO | |
USE Dapper_DB; | |
GO |
This file contains hidden or 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
setInterval(function(){ | |
console.log("Running..." + Date()); | |
}, 1000) |
This file contains hidden or 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
@ECHO OFF | |
node index.js |