Base solution for your next web application

Activities of "dougmorato"

Have you got any any solution? I need FullAuditedEntity in child tables also. But the application is throwing error during update.

But the main issue is not resolved . You will get the same error if you inherit the child table from FullAuditedEntity. The sample you have provide the child is inheriting from AuditedEntity<int> not FullAuditedEntity.

You will get the same error if you inherit the child table from FullAuditedEntity. By following your code I have also changed the child table and it working then. But I need the audit columns, soft delete in the child table also.

Also in your code, if we delete a child object from child collection it is not affecting the database. But if we updating any child property is reflecting in the database. Should we have to manually identify deleted children and then delete those within a loop by calling the delete method of child repository?

The issue has been resolved.

Thanks a lot.

Please find the sample code below.

`public class CreateOrEditParentDto : EntityDto&lt;int?&gt; { 		
[Required] 		public string ParentName { get; set; } 	
public ICollection&lt;CreateOrEditChildDto&gt; Children { get; set; } }`
 public class CreateOrEditChildDto : EntityDto<int?>
    {
		[Required]
		public string Email { get; set; }
		public string FirstName { get; set; }
		public string LastName { get; set; }
		public int ParentId { get; set; }
}

The core classes are like below

 [Table("Parent")]
    public class Parent : FullAuditedEntity , IMustHaveTenant
    {
		public int TenantId { get; set; }
		[Required]
		public virtual string ParentName { get; set; }
		public virtual ICollection<Child> Children { get; set; }
}
[Table("Child")]
    public class Child : FullAuditedEntity , IMustHaveTenant
    {
	   public int TenantId { get; set; }
		[Required]
		public virtual string Email { get; set; }		
		public virtual string FirstName { get; set; }		
		public virtual string LastName { get; set; }
		public virtual int ParentId { get; set; }	
         [ForeignKey("ParentId")]
		public Parent ParentFk { get; set; }
	}

<li> <a (click)="showProducts(record.app.id)">{{l(ViewDetail)}}</a> </li>

** generated by RAD tool.(main.module.ts)

Side panel, i have my Products Menu , which works fine. I am using the same path inside Order like ,

{{ path: 'ProductsApp/Products', component: ProductsComponent, data: { permission: 'Pages.Products' }}

using this path , typescript using

showProducts(){ router redirect ('ProductsApp/Products')

}

Thanks.

i believe , admin-routing has "App level artifacts " , all my entity/domain routing on my main.module .

From framework , u can easily generate my scxenario. could u please check to generate a sample and check and share the code.

Or template.txt has only Edit Delete and View options. do we need to modify the template for adding "ViewDetail" , just curios ??

<cite>ismcagdas: </cite> For Case 1:

Is your target page requires a permission ? This seems like a permission problem.

Yes,

** as i said , all pages are generated using ASPNETZERO , "Create an Entity "menu options.

Both my pages requires permission , permission.isGranted('Pages.modulename.Edit') , permission.isGranted('Pages.modulename.Delete') auto generated by the power tool.

Can u simulate a simple app from u r end and check , how to handle this scenario.

i agree.

but can u post a full sample code , where to modify the options
on both cases.

Thanks

Showing 1 to 10 of 10 entries