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
import { Config } from '@abp/ng.core'; | |
const baseUrl = 'http://localhost:4200'; | |
export const environment = { | |
production: false, | |
application: { | |
baseUrl, | |
name: 'MyProjectName', | |
logoUrl: '', |
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 System; | |
using Microsoft.Extensions.DependencyInjection; | |
using Shouldly; | |
using Xunit; | |
namespace MsDependencyInjectionTests | |
{ | |
public class SingletonsDependingScoped | |
{ | |
[Fact] |
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
public class MyDbContext : DbContext | |
{ | |
public DbSet<User> Users { get; set; } | |
public MyDbContext(DbContextOptions<MyDbContext> options) | |
: base(options) | |
{ | |
} |
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
public static Dictionary<string, string> AllCultures = new Dictionary<string, string> | |
{ | |
{"af", "Afrikaans"}, | |
{"af-ZA", "Afrikaans - South Africa"}, | |
{"ar", "Arabic"}, | |
{"ar-AE", "Arabic - United Arab Emirates"}, | |
{"ar-BH", "Arabic - Bahrain"}, | |
{"ar-DZ", "Arabic - Algeria"}, | |
{"ar-EG", "Arabic - Egypt"}, | |
{"ar-IQ", "Arabic - Iraq"}, |
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 Abp.Dependency; | |
using Abp.Runtime.Session; | |
namespace Abp.Castle.Logging.Log4Net | |
{ | |
public class Log4NetTenantIdProperty | |
{ | |
private readonly IIocResolver _iocResolver; | |
private IAbpSession _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
$('#UsersGrid').kendoGrid({ | |
editable: true, | |
columns: [{ | |
field: 'userName', | |
title: app.l('UserName') | |
}, { | |
field: 'name', | |
title: app.l('Name') | |
}, { | |
field: 'surname', |
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
var app = app || {}; | |
(function ($) { | |
/* UrlStates enum */ | |
var UrlStates = { | |
LOADING: 'LOADING', | |
LOADED: 'LOADED', | |
FAILED: 'FAILED' | |
}; |
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
/* Add registration code to Initialize of your module */ | |
//... | |
public override void Initialize() | |
{ | |
IocManager.Register<IBinaryObjectManager, FileSystemBinaryObjectManager>(DependencyLifeStyle.Transient); //ADD THIS HERE | |
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly()); | |
} | |
//... |
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
//Demo usage | |
public class HomeController : MyControllerBase | |
{ | |
private readonly IRepository<MyEntity> _myEntityRepository; | |
public HomeController(IRepository<MyEntity> myEntityRepository) | |
{ | |
_myEntityRepository = myEntityRepository; | |
} |
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 System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Linq; | |
using Microsoft.EntityFrameworkCore; | |
using Z.EntityFramework.Plus; | |
namespace EfPlusDemo | |
{ |
NewerOlder