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?

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, 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])

<cite>ismcagdas: </cite>

  1. Which entity you want to add non-nullable OrganizationUnitId ?
  2. How would oyu like to associate this entity with an OU ? Do you want users to select it on the UI ? Or do you want to associate it with the currently logged in user's OU ?

Hi,

  1. All entities each of which has SpaceId property (OR Space's contents).

  2. Since each user may be a member of multi spaces, so it must be selected in the UI

I just need an 'Create/Update entity in OU' example so I can understand the ABP OU feature.

For example: We have a root OU named as 'MyRootOu' with code '00001' 'MyRootOu' has child named as 'MyRootOuChild' with code '00001.00001'

Now, we have a entity named as 'Blog' with not-nullable Ou Id, When a user wants to create a new Blog in 'MyRootOuChild' , what we need and how it possible in the 'BlogAppService'?

  1. Is the Ou ID sufficient?
  2. Given the example above, where is the best use of 'myRootOuChild.Code'? // I can't understand the CODE section of a OU

Thanks in advance @ismcagdas

<cite>ismcagdas: </cite> @csbeginner ABP has defined

<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/Organizations/IMayHaveOrganizationUnit.cs">https://github.com/aspnetboilerplate/as ... ionUnit.cs</a> and <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/Organizations/IMustHaveOrganizationUnit.cs">https://github.com/aspnetboilerplate/as ... ionUnit.cs</a>

interfaces to standardize the usage or OrganizationUnitId but those interfaces are not used in dynamic filtering.

So, you can derive your entities from one of those interfaces and implement an OrganizationUnit filter similar to IMayHaveTenant or IMustHaveTenant.

Thanks for reply. My question is 'How to have CRUD entity service for an entity with not-nullable organization unit, when that entity's organization unit had child/parents?'

I can't understand the OU.Code section, How Abp mapping tree of OU at CURD request? We should pass OU.Code or OU.Id from our controllers in write scenarios?

Showing 1 to 10 of 49 entries