Thanks for the help. I implemented your suggested changes after setting up the Managed Identity and it works great. Here is the override code that I used. I put this in it's own file:
using Microsoft.Azure.Services.AppAuthentication;
using SD.LLBLGen.Pro.ORMSupportClasses;
using System.Data.Common;
using System.Data.SqlClient;
namespace coetzeeModel.DaoClasses
{
public partial class CommonDaoBase : DaoBase
{
public override DbConnection CreateConnection(string connectionString)
{
SqlConnection con = (SqlConnection)base.CreateConnection(connectionString);
con.AccessToken = (new AzureServiceTokenProvider()).GetAccessTokenAsync("https://database.windows.net/").Result;
return con;
}
}
}