Base solution for your next web application

Activities of "bbakermmc"

replace the layout file as required to meet theme. update bundles if needed, rebuild the metronic css files using their build process, its not an easy task.

I think they finally released a helper nuget that works with .netcore 2.0 But we just created a DTO

[DontWrapResult]
        [RequiresFeature(AppFeatures.Twilio)]
        public async Task<IActionResult> InboundRequestWithAccountSId(TwilioRequestDTO input)
        {
            if (!CheckFeatureValue(input.AccountSid, AppFeatures.Twilio_AccountSId))
            {
                Logger.Error(string.Format("{0} accountsid provided, expected {1}",
                    input.AccountSid, FeatureChecker.GetValue(AppFeatures.Twilio_AccountSId)));

                throw new UserFriendlyException("Key not valid.");
            }

            if (input.NumMedia.HasValue && input.NumMedia > 0)
                AddAttachments(input);

            await Create(input, Direction.Inbound, Method.Twilio);

            return EmptyResponse();
        }

We use actionresult with twilio and have no issues.

They have 1 theme only. You will need to make your own layout etc.

You cant easily. They dont run the metronic builds

Answer

The data is in the tables in the DB. What are you tying to do?

To do what? Its just a T4 you can add it yourself.

The end user for AspNetZero is a developer. You would have to make your own based on whats provided. They have some youtube videos.

<a class="postlink" href="https://www.youtube.com/watch?v=CM-5bNf1G4k">https://www.youtube.com/watch?v=CM-5bNf1G4k</a>

Like I posted before. Not sure why youre trying to fight the system. If your DB is setup to Be TABLENAME<ID> then just override ID in your Model:

public partial class Answer : AuditBase<string>, IEntityDto<string>
    {
        [Column("TestId")]
        [Key]
        public override string Id { get; set; }
}

Then you can just call the standard delete function w/out an override.

This works fine for us and all of our tables have a PK of TableNameId

To clarify steps

Step 1 - Copy/Paste Existing Test project Step 2 - Add Connection String to AppSettings Step 3 - Comment Out in TestModule CTOR abpZeroTemplateEntityFrameworkCoreModule.SkipDbContextRegistration = true; Step 4 - Set ConnectionString in PreInitialize - Configuration.DefaultNameOrConnectionString = configuration["ConnectionString"]; Step 5 - Add auth disable code Step 6 - Disable Seed in TestBase Step 7 - Disable In memory and add new service collector in DI/ServiceCollectionRegistrar, also remove the inMemoryOpen and EnsureCreated.

public static void Register(IIocManager iocManager)
        {
            RegisterIdentity(iocManager);

            var builder = new DbContextOptionsBuilder<PlatformDbContext>();

            //var inMemorySqlite = new SqliteConnection("Data Source=:memory:");
            //builder.UseSqlite(inMemorySqlite);
            var serviceProvider = new ServiceCollection()
                .AddEntityFrameworkSqlServer()
                .BuildServiceProvider();
            builder.UseSqlServer("YOURSTRING")
                .UseInternalServiceProvider(serviceProvider);


            iocManager.IocContainer.Register(
                Component
                    .For<DbContextOptions<PlatformDbContext>>()
                    .Instance(builder.Options)
                    .LifestyleSingleton()
            );

           // inMemorySqlite.Open();
          //  new PlatformDbContext(builder.Options).Database.EnsureCreated();
        }
public PlatformTestModule(PlatformEntityFrameworkCoreModule abpZeroTemplateEntityFrameworkCoreModule)
        {
            //  abpZeroTemplateEntityFrameworkCoreModule.SkipDbContextRegistration = true;
        }

        public override void PreInitialize()
        {
            var configuration = GetConfiguration();

            Configuration.DefaultNameOrConnectionString = configuration["ConnectionString"];

            Configuration.UnitOfWork.Timeout = TimeSpan.FromMinutes(30);
            Configuration.UnitOfWork.IsTransactional = false;

            //Disable static mapper usage since it breaks unit tests (see https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2052)
            Configuration.Modules.AbpAutoMapper().UseStaticMapper = false;

            //Use database for language management
            Configuration.Modules.Zero().LanguageManagement.EnableDbLocalization();

            RegisterFakeService<AbpZeroDbMigrator>();

 
            var auth = IocManager.Resolve<IAuthorizationConfiguration>();
            auth.IsEnabled = false;
            Configuration.ReplaceService<IPermissionChecker, NullPermissionChecker>();

            Configuration.ReplaceService<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);

            Configuration.Modules.AspNetZero().LicenseCode = configuration["AbpZeroLicenseCode"];
        }
public class CustomTest : AppTestBase, IDisposable
    {

        private readonly IEditionAppService _editionAppService;
        
        public CustomTest)
        {
            LoginAsHostAdmin();
            _editionAppService = Resolve<IEditionAppService>();
        }
        [MultiTenantFact]
        public async Task Should_Get_Editions()
        {
            var editions = await _editionAppService.GetEditions();
            editions.Items.Count.ShouldBeGreaterThan(0);
        }      
    }
Showing 51 to 60 of 145 entries