June 18, 2012

Stop Visual Studio after build when error occurs


Errors:
- Visual Studio and Stop running after build when error occurs
- How to stop run application after 'build and run' with error(s)
- Oops, My visual studio continues and run the last successful build, is it...


Solutions:
Go to Microsoft Visual Studio (2005, 2008 or 2010) > Tools > Options... > Projects and Solutions > Build and Run > and then
1- On Run, when projects are out of date > Prompt to build is default setting
2- On Run, when build or deployment errors occur > Prompt to launch is default setting

June 02, 2012

Unable to update the EntitySet


Error:
Unable to update the EntitySet 'TABLE_NAME' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.


Solution:
You have forgotten to set the PrimeryKey for this Table in DBMS like SQL Server

May 22, 2012

BeginGroup in WPF Devexpress Ribbon


Problem:
- I can't find "BeginGroup" in WPF Ribbon! is there any solution ...
- Does the silverlight ribbon bar items have the begingroup option? Can't find it anywhere.
- How do you do a BeginGroup in the application menu using WPF or SL ...

Solution:
Just used of a BarItemLinkSeparator in XAML instead of BeginGroup property.

XAML:
<dxr:RibbonPageGroup>
    <dxb:BarButtonItemLink BarItemName="barButtonItemFind" />
    <dxb:BarButtonItemLink BarItemName="barButtonItemBookmark" />
    <dxb:BarItemLinkSeparator />
    <dxb:BarButtonItemLink BarItemName="barButtonItemFirst"/>
    <dxb:BarButtonItemLink BarItemName="barButtonItemPrevious" />
    <dxb:BarButtonItemLink BarItemName="barButtonItemNext" />
    <dxb:BarButtonItemLink BarItemName="barButtonItemLast" />
</dxr:RibbonPageGroup>

May 19, 2012

The argument types 'Edm.Guid' and 'Edm.String' are incompatible


Error:
- The argument types 'Edm.Guid' and 'Edm.String' are incompatible for this operation. Near equals expression, line X, column Y.
- ObjectQuery<T>.Where problem with GUID
- Where filter predicate format is not match with GUID and ...

Solution:
The GUID format in where clause must be started with GUID term and covered with single quotation, like below

X.Where("it.ID = GUID'00000000-0000-0000-0000-000000000001'");