Base solution for your next web application

Activities of "sampath"

Yes.I saw that.Thanks a lot Halil :)

Thanks a lot Halil. It works :)

Hi Halil,

Wow... Thanks a lot :)

Hi Halil,

Thanks for the reply. Actually the ids are the same. Please see the attached image. One thing I have to note that here that is, The relationship between the "Properties" and "Addresses" tables are 1 : 1 (I have mentioned it on the image also).Is that the issue here ? If so then how can I sort out this issue ?

If there is no other solution could you tell me how to do custom mapping as you mentioned above.Just a reference or simple example is more than enough. Thanks in advance.

Here is the imge url : <a class="postlink" href="http://imgur.com/a/cJdei">http://imgur.com/a/cJdei</a>

Address :

[Table("IpAddresses")]
    public class Address : FullAuditedEntity
    {
        public const int MaxLength = 50;

        [Key, ForeignKey("Property")]
        public override int Id { get; set; }

        [Required]
        [MaxLength(MaxLength)]
        public virtual string StreetNumber { get; set; }

        [Required]
        [MaxLength(MaxLength)]
        public virtual string StreetName { get; set; }

        [ForeignKey("CityId")]
        public virtual City City { get; set; }
        public virtual int CityId { get; set; }

        [ForeignKey("StateId")]
        public virtual State State { get; set; }
        public virtual int StateId { get; set; }

        public virtual Property Property { get; set; }
    }

Hi Halil,

That url is not working ? Could you correct it ? Thank in advance.

Hi Halil,

Thank you so much :)

The problem was on the "AddressDto" mapping.I have done as you said and now it's working.Thanks again :)

Mapper.CreateMap<Address, AddressDto>()
              .ReverseMap()
              .ForMember(address => address.Id, options => options.Ignore());

Hi Halil,

Thanks for the reply.Me too think this is due to lazy loading issue.Is there any way to use eager loading with below mentioned query ? Thanks in advance.

var ownerDetail = await _ownerDetailRepository.FirstOrDefaultAsync(p => p.Id == input.OwnerDetail.Id);

Note : I know how to do it in general.But I would like to know how to it with ABP ?

Eager loading sample :

var blog1 = context.Blogs 
                        .Where(b => b.Name == "ADO.NET Blog") 
                        .Include(b => b.Posts) 
                        .FirstOrDefault();

Hi Halil,

OK sure. Thanks a lot.You too have a Great week ahead ! :)

Hi Halil, Thanks a lot for the quick response. Do you have any experience with the JsReport ? Hence it's a JavaScript implementation, I think we can use it easily with the Angular.What's your thoughts about it ? Thanks in advance.

Url : <a class="postlink" href="http://jsreport.net/">http://jsreport.net/</a>

Hi Halil, Yeah,If you can add JsReporting tool into ABP by default,then your framework will have huge value. Hope you'll think about it too.Good Luck ! :)

Showing 1 to 10 of 125 entries