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.Text.Json; | |
using AutoMapper; | |
namespace automapper_two_entities | |
{ | |
public static class Program | |
{ | |
public static void Main() | |
{ |
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 Castle.Components.DictionaryAdapter; | |
using Castle.Core; | |
using Castle.Facilities.TypedFactory; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Context; | |
using Castle.MicroKernel.Handlers; | |
using Castle.MicroKernel.Lifestyle; | |
using Castle.MicroKernel.Registration; | |
using Castle.MicroKernel.SubSystems.Configuration; | |
using Castle.Windsor; |
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
public class EntityService : IEntityService | |
{ | |
public EntityService( | |
IUnitOfWorkFactory unitOfWorkFactory, | |
IRepository<Entity> repository, | |
IRepository<Entity2> repository2 | |
) | |
{ | |
this._unitOfWorkFactory = unitOfWorkFactory; | |
//... same for other dependencies |
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; | |
using System.Configuration; | |
using Castle.Components.DictionaryAdapter; | |
using Castle.Facilities.TypedFactory; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Context; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; |