This project is read-only.

Errors in DALProxy --> WCFService

Mar 13, 2011 at 1:45 AM
Edited Mar 13, 2011 at 1:49 AM

I cant compile DALProxy and WCFService  projects  because of this:

Example :

Look at your LINQ Expression  guys  inside RunSelect as I understand I have no crs_Client_Activity foreifg Key for    x alias

#region crs_Activity Select By Foreign Key

        /// <summary>
        /// Populate a 'crs_Activity' DTO object collection from its relationship with the 'crs_Client' table.
        /// </summary>
        public static void SelectByFkcrs_Client(this List<CRM.Domain.DAL.DataTransfer.crs_Activity> crsActivityList, int id_Client)
        {
            var list = CRM.Domain.DAL.Business.Objects.crs_ActivityCollection.RunSelect(x => x.crs_Client_Activity.Id_Client == id_Client);
            foreach (CRM.Domain.DAL.Business.Objects.crs_Activity item in list)
            {
                var newItem = new CRM.Domain.DAL.DataTransfer.crs_Activity();
                newItem.Fill(item);
                crsActivityList.Add(newItem);
            }
        }

 

-----------------------------------------------------------------

 

and the correctly compiled variant is :

 

        #region crs_Activity Select By Foreign Key

        /// <summary>
        /// Populate a 'crs_Activity' DTO object collection from its relationship with the 'crs_Client' table.
        /// </summary>
        public static void SelectByFkcrs_Client(this List<CRM.Domain.DAL.DataTransfer.crs_Activity> crsActivityList, int id_Client)
        {
            var list = CRM.Domain.DAL.Business.Objects.crs_ActivityCollection.RunSelect(x => x.Fkcrs_Client_Activity.Id_Client == id_Client);
            foreach (CRM.Domain.DAL.Business.Objects.crs_Activity item in list)
            {
                var newItem = new CRM.Domain.DAL.DataTransfer.crs_Activity();
                newItem.Fill(item);
                crsActivityList.Add(newItem);
            }
        }

 

thanks for your suport

Mar 13, 2011 at 3:51 PM

This looks like it might have something to do with a FK name or relationship role name. Please send the model so I can determine what is exactly going on (feedback@nhydrate.org). Your relation might be a little different than my tests. I would like to see your model if possible.