How to use autoMapper for datatables to list?

I think I miss something in my code which cause this error : AutoMapperMappingException: Missing type map configuration or unsupported mapping. this is my first time that I try to use autoMapper for filling my dto from datatable. so I found an example from How do I use automapper to map a dataset with multiple tables . so this is my code :

retrieve the default site URL(azurewebsites.net) from an Azure website (xyz.com)

Azure websites have a default “site URL” , something like mysite.azurewebsites.ne(which i don’t have, I only have the xyz.com). Is it possible to get this URL just by knowing the address aka custom domain (xyz.com) , keep in mind that im not the admin of the site and all I have is normal access

What will be the best practices in my code to prevent sql injection?

What will be the best practices to prevent sql injection? My client asked me to prevent sql injection. I used this structure for data inserting or updating public bool Add(GreenItem aGreenItem, Employee emp) { aGreenItem.GreenItemCode = new CommonBLL().GetMaxId("[GreenItemCode]", "[Processing].[GreenItem]", "GTM"); using (SqlConnection objConnection = Connection.GetConnection()) { SqlTransaction transaction = objConnection.BeginTransaction("SampleTransaction"); try { string query = … Read more