 |
 |
Index ‹ Visual Studio 2008 ‹ LINQ Project General
|
- Previous
- 1
- LINQ Project General Doubts concerning Linq
I have some doubts about Linq:
1) What is the sintax for an update command, like below:
update <table> set <field1> = value, <field2> = value
where <field3> = value and <field4> = value
2) Isnt Linq really providing a native provider for Oracle, MySql Letting this to other vendors looks like ODBC :(
3) Is the idea of Linq to take 100% of ORM market share Why would one continue using other ORMs if Linq (which is integrated to VS2005 and Orca) is able to map DB as well to entities
4) Is Linq really linked to Orca RTM When will that be, is there any planned date yet
- 2
- Visual Studio Extensibility IVsTextMarkerClient multi-level context menuIs it possible to create multi-level menu items from a IVsTextMarkerClient (perhaps inside the GetMarkerCommandInfo method)
The sample code below adds one menu item for each item in the pointcuts
array, but I would like to add only one menu item with each array
element as sub menu items.
public int GetMarkerCommandInfo(IVsTextMarker pMarker, int iItem, string[] pbstrText, uint[] pcmdf)
{
if (pbstrText == null)
{
return VSConstants.S_OK;
}
uint
flags =
(uint)(Microsoft.VisualStudio.OLE.Interop.OLECMDF.OLECMDF_SUPPORTED |
Microsoft.VisualStudio.OLE.Interop.OLECMDF.OLECMDF_ENABLED);
if (iItem < pointcuts.Length)
{
pbstrText[0] = pointcuts[iItem].ToString();
pcmdf[0] = flags;
return VSConstants.S_OK;
}
return VSConstants.S_FALSE;
}
- 3
- Visual Studio Source Control and SourceSafe VSS 6.0 Command line
Hi,
I'm working with VS 2005 and VSS 6.0.
I've build a small .cmd file that clean some folders, build the solution (using devenv.exe) and deploy files to a specific folder.
I'd like to add a first step in my bat file which is "get latest version of the project files with user USER password PASS and without overriding checked out items".
I've started to look into the documentation of ss.exe, but it's quite complex and I didn't get success.
Does anyone have the right command line for me
Thsnk in advance,
Steve
- 4
- Developer Documentation and Help System Sandcastle - Links to inherited framework members not working on my system.
Hello All,
I would appreciate some feedback on the following issue I am having with the latest version of Sandcastle. I am either doing something wrong or there would appear to be an issue with the latest sandcastle release.
When I use sandcastle ( latest release ) to generate a help 2.0 .HXS file I have noticed that when I integrate it into Visual Studio 2005 - using the help integration wizard supplied in the SDK - I seem unable to get to inherited members from the Framework when I click on them. When I look at my classes they contain inherited members like GetType(), Equals(Object) which are all inherited from the Object() class. When I click on them I get a page displayed saying "Information not found". I am sure on previous versions of sandcastle this used to work. I have had a look at the references in the help file and in the case of GetType() - which is inherited from Object() - it seems to contain references which looks quite a bit different to links which work in the existing visual studio 2005 help. In the resolve reference links of sandcastle.config file I have the "index" type set for the cpref_reflection:
<!-- resolve reference links --> <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent" assembly="..\..\ProductionTools\BuildComponents\BuildComponents.dll"> <targets files="reflection.xml" type="local" /> <targets files="..\cpref_reflection\*.xml" type="index" /> </component>
If I set the cpref_reflection type to "msdn" it correctly access the internet to show me details of the inherited member, it is just the setting the type to "index" does not appear to work. I am sure on previous versions of Sandcastle, when I clicked on an inherited framework member to give its details my from visual studio help files installed on my system.
If I view the source of an inheritied framework member like GetType() in the .HXS I have generated using Sandcastle it seems to have the following code which does not look right:
<td><mshelp:link keywords="GetType" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">GetType()</mshelp:link></td><td><div class="summary">Gets the <mshelp:link keywords="Type" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">Type</mshelp:link> of the current instance.</div> (Inherited from <mshelp:link keywords="Object" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">Object</mshelp:link>.)</td>
I would appreciate any help on this matter as I am need to get this working as I would like to use Sandcastle to document my code.
Michael
- 5
- 6
- Visual Studio Tools for Office Display HTML text in Word (with VSTO)Hi,
I would like to tell Word to interpret some text in HTML form and display only the resulting text well-formated.
Here some code: Word.Range range = Range(ref missing, ref missing); range.Text = "Some normal text"; range.Bold = 1; range.InsertAfter("\n\n"); range.Collapse(ref collapseEnd);
// now the html part range.Text = "<span class="A21">This is some html content</span>" ; range.InsertAfter("\n\n");
The second part of the code displays the HTML tags instaed of interpreting it as html. Any idea how I can fix this
Thanks a lot for any help. Claudia
- 7
- Windows Presentation Foundation (WPF) Reflection based loading of Ressources
Hi. I am building a small test framework for loading and instantiating XAML views. I have got a problem with Reflection and loading of XAML ressources.
A. I Load an Assembly: .... a= Assembly.LoadFile("myassembly");...
B. I would then like to load the XAML ressources in that Assembly into the current Applications Ressource Dictionary, (Merged), something like this:
uri = new Uri("pack://application:,,,/MyAssembly;component/Resources/SomeResource.xaml"); rd = new ResourceDictionary(); rd.Source = uri; Application.Current.Resources.MergedDictionaries.Add(rd);
When I use the methods: GetManifestResourceNames / GetManifestResourceStream / GetManifestResourceInfo on the assembly, I get the embedded ressources by name, something like: 'MyAssembly.g.resources', but what I would like to obtain, is the name 'SomeResource',in order to load the ressource into the Application Dictionary.
I hope someone has got an idea.
- 8
- 9
- 10
- Visual Studio Extensibility Can I create ModelDocData and ModelDocView from the model domain class?
I serialized my model doing something like this:
SerializationResult sr = new SerializationResult();
UseCaseSampleSerializationHelper.Instance.SaveModelAndDiagram(sr, obj1.ModelRoot, @"C:\TEMP\MODEL.XML", obj2.Diagram, @"c:\temp\model.diagram");
This work fine, after i want to deserialized the model and show it on one designer, but i haven’t any file ".diagram" on the solution explorer, only I have the model load on the store:
SerializationResult sr = new SerializationResult();
UseCaseModel result=null;
Store store = new Store();
Type[] modelTypes = new Type[] {
typeof(Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel),
typeof(Microsoft.Example.UseCases.UseCaseSampleDomainModel)
};
store.LoadDomainModels(modelTypes);
UseCaseSampleDiagram d=null;
using (Transaction t = store.TransactionManager.BeginTransaction("Reading diagram")) {
result = UseCaseSampleSerializationHelper.Instance.LoadModelAndDiagram(store, @"C:\TEMP\MODEL.XML", @"c:\temp\model.diagram", null,null);
t.Commit();
}
How can i do for create a Document and show it
Thanks.
- 11
- 12
- Windows Presentation Foundation (WPF) Clipboard Problem
Hi there
I seem te be having a problem when placing images on the clipboard. It only seems to be a problem when the code is executed on a Virtual PC and I suspect it has something to do with graphics memory, but I am not sure, and I was hoping that perhaps someone will know of a better way to accomplish this.
Here is some info on the app. We have an avalon design canvas on which all kinds of objects are placed. Later on the user can then select an area of this design canvas and "grab" a bitmap image of the selection. This bitmap image is placed on the clipboard from where it can be pasted into other applications as normal images.
Here is the code that takes, as input, a FrameworkElement, makes a bitmap out of it an returns the sub-selection inside it as a bitmap image:
public static System.Drawing.Bitmap GetWin32BitmapFromUIElement(System.Windows.FrameworkElement element, System.Windows.Rect regionInsideElement)
{
MemoryStream fs = new MemoryStream();
System.Windows.Media.Imaging. RenderTargetBitmap bmp = element.ActualHeight > 0 new RenderTargetBitmap((int)element.ActualWidth, (int)element.ActualHeight, 1 / 96, 1 / 96, System.Windows.Media.PixelFormats.Pbgra32) : new RenderTargetBitmap((int)element.Width, (int)element.Height, 1 / 96, 1 / 96, System.Windows.Media.PixelFormats.Pbgra32);
bmp.Render(element);
PngBitmapEncoder encoder = new PngBitmapEncoder();
encoder.Frames.Add( BitmapFrame.Create(bmp));
encoder.Save(fs);
System.Drawing. Image img = System.Drawing.Image.FromStream(fs);
System.Drawing. Bitmap final = new System.Drawing.Bitmap((int)regionInsideElement.Width-1, (int)regionInsideElement.Height-1);
System.Drawing. Graphics g = System.Drawing.Graphics.FromImage(final);
g.DrawImage(img, new System.Drawing.RectangleF(0, 0, (float)regionInsideElement.Width, (float)regionInsideElement.Height), new System.Drawing.RectangleF((float)regionInsideElement.Left, (float)regionInsideElement.Top, (float)regionInsideElement.Width, (float)regionInsideElement.Height), System.Drawing.GraphicsUnit.Pixel);
fs.Close();
return final;
}
After this, the resulting Bitmap object is placed on the clipboard:
System.Windows.Forms. Clipboard.Clear();
System.Drawing. Bitmap bmp = Utilities.GetWin32BitmapFromUIElement(this as FrameworkElement, areaToGrab);
System.Windows.Forms. Clipboard.SetImage(bmp);
bmp.Dispose();
bmp = null;
It is this code that causes the "Requested Clipboard Operation did not succeed" error on Virtual PCs.
Any ideas
- 13
- Visual Studio MSBuild using of ILogicalThreadAffinative
when i using this interface
this error ....
Error 28 The "GenerateResource" task failed unexpectedly. System.Runtime.Serialization.SerializationException: Type is not resolved for member 'RAD.Infra.Contexts.InfraContext,RAD.Infra.Contexts, Version=1.0.1.1, Culture=neutral, PublicKeyToken=3f5c254063a54fe2'. at System.AppDomain.CreateInstanceFromAndUnwrap(String assemblyName, String typeName) at Microsoft.Build.Tasks.GenerateResource.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) RAD.TVTO.Plan.UI
- 14
- Visual Studio Tools for Office in my vb.net windows application i need to open the ms outlook adress book
in my vb.net windows application i need to open the ms outlook adress book
in my windows application i am preparing an email application in my compose an email form i need to access the email id's from the adress book of the system
i kept a button and an text box when i click on the button i should be able to open the adressbook and select the email id in the adress book and this email id should get aded in the text box
can any one help me plz
- 15
- Visual Studio Tools for Office I need help!
I would really appreciate it if someone could help me out on this
I'm having problems with the security permissions of the word document customization assemblies. Even after giving permissions to the assembly from the .Net framework configuration, it's still telling me that the customization assembly does not have the required permissions to execute. I've been facing this issue for a long time..
plz if anyone has the solution to my problem, i'd really appreciate your feedback
thanks
Maha
|
| Author |
Message |
Raulsassaa

|
Posted: LINQ Project General, BLinq customization |
Top |
Does anyone know if it will be possible to customize BLinq page layout, as well as to alter navigation structure
Visual Studio 200840
|
| |
|
| |
 |
Polita

|
Posted: LINQ Project General, BLinq customization |
Top |
The page and controls that are generated by Blinq are not customizable. After the web app is created, the app can be opened in VS and any part of the app can be changed. Customization of Blinq output is a feature we're considering for the Visual Studio version of the Blinq functionality.
The styles used by Blinq websites can be changed. The CSS, browser, and skin files are stored in C:\Program Files\Microsoft ASP.NET\Blinq\Browser Files and C:\Program Files\Microsoft ASP.NET\Blinq\Theme Files. If you replace those with files you have customized, Blinq will use your files on all subsequent runs.
Hope this helps...
Polita
|
| |
|
| |
 |
Raulsassaa

|
Posted: LINQ Project General, BLinq customization |
Top |
It helped a lot. Does BLinq use a code generator to create automatically the code that goes behind the pages
If so, would that code generator be open to us, mere mortal users :)
|
| |
|
| |
 |
Polita

|
Posted: LINQ Project General, BLinq customization |
Top |
Sorry, there are no plans to make the source code for Blinq public.
|
| |
|
| |
 |
| |
 |
Index ‹ Visual Studio 2008 ‹ LINQ Project General |
- Next
- 1
- Visual Studio Tools for Office Which Interop To Choose?
Hello everyone.
I have a question about the Office 12 Interops - I wish to develop a solution for that platform under .NET v2, But the interops i have right now are either COM or .NET v1.1 assemblies.
Are there any v2 interops planned (Although the v1.1 interops seem to work with v2 form applications) Which are preferable - COM or Managed
Thanks in advance,
Ran Sagy.
- 2
- Windows Presentation Foundation (WPF) XBAP sizeHi,
When I publish my XBAP application, the following four files get copied into the xbap directory, in Debug or Release mode:
- Draft.PresentationDesignMarkup.dll (408KB)
- PresentationDesignCore.dll (184KB)
- PresentationDesignDevelopper.dll (372KB)
- PresentationDesignFramework.,dll (84KB)
This adds up to about a megabyte minimum size for the XBAP, before any of my code gets included. This is kind of heavy for lightweight applications, and I don't understand why these dlls aren't included in the 3.0 runtime. Is this still going to be the case after .NET 3.0 RTMs
- 3
- 4
- Windows Presentation Foundation (WPF) display System.Windows.Forms.RichTextBox in xaml browser
Hi,
I can't display System.Windows.Forms.RichTextBox in my xaml browser application.If I use System.Windows.Controls.RichTextBox then it works,but i cannot achieve some of the functionalities like getting the text bolded,underlined etc. Hence i tried to use System.Windows.Forms.Richtextbox. Can any one tell me how to display System.Windows.Forms.RichTextBox in XAML browser application or else how could i achieve the mentioned functionalities for system.windows.controls.richtextbox.
Regards,
spshah
- 5
- 6
- Visual Studio Tools for Office Building Office integrated applications
We have some applications that uses Office Interop's. We have downloaded the PIA's from Microsoft and references the Interop dll's that are included there.
The problem occurrs when moving to a build server: In order to install the PIA on the build server, we must first install (at least one) Microsoft Office Application.
While we can do that, this seems somewhat incorrect to install client applications on a build server in order to just make it compile.
What is the recommended approach here In other projects we have created Interop-files manually be using the TlbImp tool. But with MS Office, we don't have a type library file.
Regards
/Jakob
- 7
- 8
- Visual Studio Setup and Installation Microsoft Component Distribution
I am a software developer and I have created an installation setup program in Visual Studio for the software I wrote in Visual Basic. Another person downloaded my program and installed it to their computer. That person tells me they are running Windows XP on their computer. But when they tried to run my software they got the error message:
Run-time error '339': Component 'MSMAPI32.OCX' not correctly registered: file is missing or invalid.
My program uses MAPI to send out email messages. I thought all Windows systems would have MAPI installed on them. Should I add the MAPI OCX file to my installation program and do I have the legal right to do so Does Microsoft authorize developers to distribute that component with their applications Do I need to distribute some other Microsoft components that my program uses, like ADO and Excel How do I know which components I legally can and should include in my installation program
Any help is appreciated.
- 9
- Windows Presentation Foundation (WPF) Databind Child Object
Hi,
I have an object called Product and that product as a property of type List<Photo>. Photo is an object with an URI and a few more properties. What I want to do is in the DataTemplate access the first Photo of each product. I have something like this for the other properties in the Product Object:
<GridView x:Key="gridView" AllowsColumnReorder="True"> <GridViewColumn Header="Tipo de negocio" DisplayMemberBinding="{Binding Path=TypeOfBussiness}"/> <GridViewColumn Header="Tipo de imovel" DisplayMemberBinding="{Binding Path=TypeOfProduct}"/> <GridViewColumn Header="Tipologia" DisplayMemberBinding="{Binding Path=Typology}"/> </GridView>
And I wanted to define another GridViewColumn to show the photo, that will be in a data template. The problem here is binding to the path provided in the first Photo object of the List<Photo> in Products.
Thank you Bruno Silva
- 10
- ADO.NET (Pre-release) Working with WCF Service
I am trying to use the Entity Framework with a WCF service. It is giving me the following exception:
System.ArgumentException was unhandled by user code Message="The default entity container name 'eKnowledgeSpaceDBModel.eKnowledgeSpaceDB' is invalid. The required mapping and metadata information could not be found.\r\nParameter name: defaultContainerName" Source="System.Data.Entity" ParamName="defaultContainerName" StackTrace: at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at eKnowledgeSpaceDBModel.eKnowledgeSpaceDB..ctor(String connectionString) in f:\eKnowledgeSpaceSolution\eKnowledgeSpaceObjectModel\obj\Debug\eKnowledgeSpaceObjectModel.Model.cs:line 8656 at eKnowledgeSpace.Service.UserRegistrationMessageDirector.RegisterUser(UserDataContract user) in f:\eKnowledgeSpaceSolution\UserRegistrationService\MessageBuilder.cs:line 42 at eKnowledgeSpace.Service.RegistrationService.UserRegistration(UserDataContract user) in f:\eKnowledgeSpaceSolution\UserRegistrationService\UserRegistrationService.cs:line 26 at SyncInvokeUserRegistration(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.InvokeDelegate.Invoke(Object target, Object[] inputs, Object[] outputs) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
I am self hosting the WCF Service, and the host application config file is as follows:
< xml version="1.0" encoding="utf-8" >
< configuration>
< configSections>
< section name="system.data.ctp" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ configSections>
< system.data.ctp>
< DbProviderFactories>
< add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
< add name="Map Data Provider" invariant="System.Data.Mapping" description=".Net Framework Map Provider" type="System.Data.Mapping.MapProviderFactory, System.Data.Entity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ DbProviderFactories>
</ system.data.ctp>
< connectionStrings>
< add name="eKnowledgeSpaceDBConnectionString" connectionString="metadata=.;provider=System.Data.SqlClient;provider connection string="Data Source=EKNOWLEDGE\SQLEXPRESS;Initial Catalog=eKnowledgeSpaceDB;Integrated Security=True"" providerName="System.Data.Mapping" />
</ connectionStrings>
< appSettings>
< add key="HTTPBaseAddress"
value="http://localhost:8000/Registration/"/>
< add key="TCPBaseAddress"
value="net.tcp://localhost:8010/Registration/"/>
</ appSettings>
< system.serviceModel>
< services>
< service name= "eKnowledgeSpace.Service.RegistrationService" behaviorConfiguration="RegistrationService">
< host>
< baseAddresses>
< add baseAddress="http://localhost:8000/Registration/"/>
< add baseAddress="net.tcp://localhost:8010/Registration/"/>
</ baseAddresses>
</ host>
< endpoint
address="Register"
binding="basicHttpBinding"
contract= "eKnowledgeSpace.Service.IRegistrationService"
/>
</ service>
</ services>
< behaviors>
< serviceBehaviors>
< behavior name="RegistrationService">
< serviceMetadata httpGetEnabled="true" />
< serviceSecurityAudit auditLogLocation="Application" messageAuthenticationAuditLevel="SuccessOrFailure" serviceAuthorizationAuditLevel="SuccessOrFailure"/>
</ behavior>
</ serviceBehaviors>
</ behaviors>
</ system.serviceModel>
</ configuration>
What should I do to solve this problem. Is there any example of a Entity Framework being called by WCF Service
- 11
- Windows Presentation Foundation (WPF) Connect two elements on StackPanel
Hello,
I have an ItemControl which have its ItemsSource set to a List instance. The ItemsControl's ItemsPanel property is set to StackPanel.
I want to connect two elements in the ItemsControl with a line when the user click with the right mouse button on an item.
How can I draw a line between the two elements
Thank you,
Ido.
- 12
- 13
- Visual Studio Tools for Office VSTO and dead code.
I've built COM add ins for PowerPoint XP and 03 that work perfectly, now I am trying to get them to work in Office 07 and am getting no where.
The problem seems to be that when I call an out of process (microsoft encoder) my code dies. There are no errors thrown, there is ummm, nothing, just dead code.
As an example;
Set encoder blah, blah, blah
encoder.start
Msgbox "Done".
In the above the encoder indeed starts, runs as expected, and then, zip, nada, nothing. Its as if the rest of the msgbox doesn't even exist.
- 14
- LINQ Project General Windows installer failure
help urgently required.
I have attempted to run a CognosController.Msi file but the installation failed with the following error: "There is a problem with this windows installer package. A script required for this install to complete could not be run."
I currently have .NET framework 1.1 including SP1 installed.
Any tips on how I can resolve this problem.
Thanks
- 15
- ADO.NET (Pre-release) All-in-one bundle Beta 1 or CTP? When will we be able to have an easier-to-install updated CTP of ADO.NET vNext The current one is a September 2006 CTP that requries the May 2006 CTP of LINQ in order to function.
Are there any firm dates as to when LINQ and ADO.NET vNext will either become parallel (release at the same time) or get rolled into the same CTP/Beta
|
|
|