This file contains 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 AutoMapper; | |
using System.Reflection; | |
namespace Microsoft.Extensions.DependencyInjection | |
{ | |
public static class MapperBuilderExtensions | |
{ | |
public static IServiceCollection AddAutoMapperModule<T>(this IServiceCollection services) where T : Profile | |
{ | |
List<Type> profiles = []; |
This file contains 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
[Persistent(nameof(BaseAuditableDataObject))] | |
public abstract class BaseAuditableDataObject : BaseDataObject | |
{ | |
public BaseAuditableDataObject() | |
{ | |
} | |
public BaseAuditableDataObject(Session session) : base(session) | |
{ | |
} |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<add key="Bla:Foo:Zoo" value="SampleValue" /> | |
</appSettings> | |
</configuration> |
This file contains 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
/// <summary> | |
/// It is the method that returns the selected data in generic type | |
/// using the repository view in all Devexpress components that can make selections. | |
/// </summary> | |
/// <typeparam name="T">Surrogate Type</typeparam> | |
/// <param name="gridView">Repository view on component</param> | |
/// <returns></returns> | |
public static IEnumerable<T> GetSelectedSurrogates<T>(this GridView gridView) where T : class | |
{ | |
if (gridView.SelectedRowsCount > 0) |
This file contains 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
WebApplicationBuilder builder = WebApplication.CreateBuilder(args); | |
WebApplication app = builder.Build(); | |
app.UseRequestResponseLogging(); | |
app.Run(); |
This file contains 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
https://nodejs.org/dist/v21.6.0/node-v21.6.0-x64.msi | |
Just copy | |
C:\Program Files\nodejs -> node_modules folder | |
to | |
%APPDATA%\npm ? if not exist just create dir then copy. |
This file contains 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 IoC.DI.WinForm.Sample.Configuration; | |
namespace Microsoft.Extensions.DependencyInjection | |
{ | |
public static class DependencyInjectionResolver | |
{ | |
public static IServiceCollection AddServiceModules(this IServiceCollection services) => | |
services | |
.AddFormModule() | |
.AddEmployeeModule() |