Thanks Khorvat and Mev9669. I followed your instructions and problem is now solved.
Now I am trying to add one more field in UserProfile.
1) I have added field in UserProfile table.
2) Added record in LocalizationSource table.
3) Added DAL and DBSpecific project in my MonoSolution.
4) Updated DAL, DBSpecific code and MonoSolution code.
and I was feeling that It will now work but somewhere its giving me error. Do you have any idea why the error is coming and what does it mean.
The prefetch path element at index 0 in the passed in prefetch path for root entity type 93 is meant for root entity type 92 which isn't a subtype of 93. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <
br
>
<
br
>
Exception Details: System.ApplicationException: The prefetch path element at index 0 in the passed in prefetch path for root entity type 93 is meant for root entity type 92 which isn't a subtype of 93. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity.<
br
>
<
br
>
Source Error: <
br
>
<
br
>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. <
br
>
Stack Trace: <
br
>
<
br
>
[ApplicationException: The prefetch path element at index 0 in the passed in prefetch path for root entity type 93 is meant for root entity type 92 which isn't a subtype of 93. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity.]<
br
>
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchPrefetchPath(IEntityCollection2 rootEntities, IRelationPredicateBucket filterBucket, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath2 prefetchPath, Boolean forceParameterizedPPath) +911<
br
>
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchPrefetchPath(IEntityCollection2 rootEntities, IRelationPredicateBucket filterBucket, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath2 prefetchPath) +54<
br
>
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchAdditionalPrefetchPath(IPrefetchPath2 prefetchPath, Context contextToUse, IEntity2 fetchedEntity, IRelationPredicateBucket filterToUse) +210<
br
>
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityUsingFilter(IEntity2 entityToFetch, IPrefetchPath2 prefetchPath, Context contextToUse, IRelationPredicateBucket filter, ExcludeIncludeFieldsList excludedIncludedFields) +1018<
br
>
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntity(IEntity2 entityToFetch, IPrefetchPath2 prefetchPath, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields) +327<
br
>
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntity(IEntity2 entityToFetch, IPrefetchPath2 prefetchPath) +91<
br
>
MonoSoftware.LLBLGen.Repository.FetchEntity(IEntity2 entityToFetch, IPrefetchPath2 prefetchPath) +89<
br
>
MonoSoftware.MonoX.Repositories.UserProfileRepository.GetUserProfile(Guid userId) +266<
br
>
MonoSoftware.MonoX.BusinessLayer.UserProfileBLL.GetCachedUserProfile(Guid userId) +206<
br
>
MonoSoftware.MonoX.BaseProfilePage.OnInit(EventArgs e) +126<
br
>
MonoSoftware.MonoX.Pages.Profile.MyWall.OnInit(EventArgs e) +2236<
br
>
System.Web.UI.Control.InitRecursive(Control namingContainer) +569<
br
>
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2237<
br
>