I am developing the Save Profile section of a web application (in ASP.NET/C#), however, I am getting an "Ambiguous match found" exception whenever the code tries to save a new profile through invoking each of the "AddObject", during runtime. The code
is as follows partly:
using System;
using System.ComponentModel.Composition;
using System.Linq;
using Itok.DataAccess.Interfaces;
using System.Collections.Generic;
using Itok.Entities;
namespace Itok.DataAccess.Repositories
{
[Export(typeof(IProfileRepository))]
public class ProfileRepository : IProfileRepository
{
private Connection conn;
public Int32 SaveProfile(Profile profile)
{
Int32 profileID1 = 0;
Boolean HasAttributeId = false;
profile.LastUpdateDate = DateTime.Now;
using(ItokDataContext dc = conn.GetContext())
{
...
Go to the complete details ...