public static ObjectToSql.Services.ObjectToSql ObjToSql <T>(this T dbConnection, bool includeNonPublicProperties = true) where T : DbConnection { return(new ObjectToSql.Services.ObjectToSql(DatabaseTypeHelper.GetDataBaseTypeFromDBConnectionType <T>(dbConnection) ?? DataBaseType.SqlServer, includeNonPublicProperties)); }