Base solution for your next web application

Activities of "itzoar2"

<a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Handling-Exceptions">https://aspnetboilerplate.com/Pages/Doc ... Exceptions</a>

May i know if i want to pass Exception Message to my WPF client

on the WPF client, i have used the library Abp.WebApi.Client.IAbpWebApiClient

but i am not sure how to pass the exception from the backend to this client.

Please advise. THanks a lot

Hi base on the below link <a class="postlink" href="https://itservices.usc.edu/office365/emailclients/">https://itservices.usc.edu/office365/emailclients/</a>

Office365 is using TLS Encryption Method and Port Number 587

It seems the SMTP client in Aspnetzero doesn't support TLS?

Hi

I have a WPF client and when it comes to Data Layer, it will go to the Service Backend to login

Would you please provide any example to us. Thanks a lot

I find that the GetAllIncluding is not stable

The below is the code that i link all related object out

but from my screenshot, you can see sometimes it can map to the object ProductApproval.Approver1 and sometimes i can't.

Is it because my apsnetboilerplate framework is on version 2.0.2?

should i update to the latest aspnetboilerplate framework?

private IEnumerable<Product> GetProduct(FilterInput input)
        {
            var output = from p in
                     (_productRepo.GetAllIncluding(
                     p => p.Colour,
                     p => p.Unit,
                     p => p.Serie,
                     p => p.Brand,
                     p => p.Supplier,
                     p => p.ProductCategory1,
                     p => p.ProductCategory2,
                     p => p.ProductCategory3,
                     p => p.ProductCategory4,
                     p => p.MinQuantities,
                     p => p.ProductApprovals,
                     p => p.CreatorUser,
                     p => p.CreatorUser.Company
                    ).ToList())
                         where Filter.FilterUtil.FilterForGetProduct(p, input)
                         select p;

            return output;
        }

I am now using the Aspnet Boilerplate framework

may i know how to debug the Entity Framework now ?

if i want to check the SQL statement generate by EF, where should i configure now ? Thanks

Question

Hi all

My Domain is in

[Table("Client")] public class Client : FullAuditedEntity<int,User> { public string Name { get; set; } public string NameEn { get; set; } public string ShortName { get; set; } public string Address { get; set; } public string AddressEn { get; set; } public string Website { get; set; } public string SocialCreditCode { get; set; } public DateTimeOffset? Registration { get; set; } public DateTimeOffset? ValidUntil { get; set; } public decimal? OperationYear { get; set; } public decimal? Capital { get; set; } public string Representative { get; set; } public string MainProduct { get; set; } public int? CheckDate { get; set; }

    [ForeignKey("Type_Id")]
    public CompanyType Type { get; set; }
    public int? Type_Id { get; set; }

    [ForeignKey("Nature_Id")]
    public BusinessNature Nature { get; set; }
    public int? Nature_Id { get; set; }

    [ForeignKey("PurchasePerson_Id")]
    public ClientContact PurchasePerson { get; set; }
    public int? PurchasePerson_Id { get; set; }

    [ForeignKey("PurchaseManager_Id")]
    public ClientContact PurchaseManager { get; set; }
    public int? PurchaseManager_Id { get; set; }

    [ForeignKey("ContactPerson_Id")]
    public User ContactPerson { get; set; }
    public long? ContactPerson_Id { get; set; }

    public List&lt;Counterparty&gt; Counterparty { get; set; }
    public List&lt;ClientContact&gt; ClientContact { get; set; }
    public bool Disuse { get; set; }

For the service layer, how do i get a GetAllClient LINQ , if i have one to many relationship between Client and Counterparty.

Please advise. Thanks a lot

Hi all

On Domain layer, my entity is subclass of FullAuditedEntity

May i know how can i retrieve the CreatorUser object on Service layer?

Please advise. Thanks alot

[Table("BankAccount")]
public class BankAccount : FullAuditedEntity
{
    public string AccountNo { get; set; }
    public string AccountName { get; set; }
    public string BankName { get; set; }

}

Showing 1 to 7 of 7 entries