Base solution for your next web application

Activities of "hitaspdotnet"

if (boo > foo) { throw new UserFriendlyException(L("FOO_Warn_SizeLimit", AppConsts.MaxFooSize)); }

Thanks for comment @ismcagdas . So, Then how is possible to access to the content root of host application from client?

Hi dears, I have migrated my eCommerce app from Core MVC to Angular. I'm verry newbie in Angular. My products images are stored in MyProject.Web.Host/wwwroot/userMedia/* I want to get product images in product-details component. I used base64 encoder and decoder and blob request from angular. Works well. My problem is where the product has presetation Videos (~5MB) or +3 images (1MB for each) I have performance issue. Have you can do this with greate app performance? I searched but I did not find any way. Very very very Thanks for any guide.

I'm a ZERO customer, not a member of Support Team. So, take care :)) If I want do this in my app, I put this to account module as new component update-mySettings.component with own router path. Like redirecting to resetPassword when a user should Reset Password after first login. I recommended you to leave mySettings modal and create it as new form. You can extend processAuthenticateResult in login.service.ts and host.

Hi. If you are using angular version then you can create a component in app module. Get the userId from abp.session.userId and check it for required property and trigger mySettingsModal.show()

Hi, Sorry for newbie question. I want to use some of Angular-Material-Web components in my app e.x image-list / grid-list. According to the Original Documents I need to import a .scss style. Please, can you guide me for this. Thanks in advance.

Hi, It's a controller from ABP framework

[https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp.Web.Mvc/Web/Mvc/Controllers/Localization/AbpLocalizationController.cs])

In fact, I think you're using ZERO MVC 5 + EF 6 version, If is true use this:

[https://msdn.microsoft.com/en-us/library/aa937723(v=vs.113).aspx])

[Table("tblStudent")]   
    public class Student : FullAuditedEntity<int>, IMustHaveTenant //by default identity type is int you can use without <int>
    {
        //...
        public virtual ImmunizationRecord ImmunizationRecord { get; set; }      
    }
[Table("tblImmunizationRecord")]
    public class ImmunizationRecord : FullAuditedEntity<int>, IMustHaveTenant
    {
       //...
        [Required]
        public virtual Student Student { get; set; }
        public virtual ICollection<ShotRecord> ShotRecords { get; set; }
    }
[Table("tblShotRecord")]
    public class ShotRecord : FullAuditedEntity<int>, IMustHaveTenant
    {
        //...
        [Required]
        public virtual ImmunizationRecord ImmunizationRecord  {get; set; }
        public int ImmunizationRecordId { get; set; }
    }
modelBuilder.Entity<Student>()
                        .HasOptional(s => s.ImmunizationRecord)
                        .WithRequired(z => z.Student);

            modelBuilder.Entity<ShotRecord>().HasRequired(r => r.ImmunizationRecord).WithMany(i => i.ShotRecord).HasForeignKey(l => l.ImmunizationRecordId).WillCascadeOnDelete(false);

I have 2 questions,

  1. Why you used override for entity identity? Only for getting member's name? I think 80% possible it's your mistake in your case.
  2. If you config your entities by fluent api why you need DataAnnotation attributes? [https://www.learnentityframeworkcore.com/configuration/data-annotation-attributes])

I can suggest you to read more about Entity Framework if is your target ORM

[https://docs.microsoft.com/en-us/ef/core/]) [https://www.learnentityframeworkcore.com/])

You need to delete bin and obj folders before publish You also need delete node_modules folder In the last, run YARN

You can review your previous post [https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=11429])

Showing 1 to 10 of 65 entries