datasource

Add My SQL data source in VIsual Studio express 2013

会有一股神秘感。 提交于 2019-12-02 12:21:59
I already install this two requirement: 1-Connector/Net 6.8.1 beta or higher version to check the Connector/Net & Entity Framework features. (download at: http://dev.mysql.com/downloads/connector/net/ on the development releases). 2- https://cdn.mysql.com/Downloads/MySQLInstaller/mysql-visualstudio-plugin-1.1.1.msi But still not sure why the data source still not appear in the option. Anyone have idea why? Please advise. BTW I'm using Visual Studio Express 2013. That's because Visual Studio Express does not allow you to install extensions. This is one of the limitations of the Express edition.

Dynamic Datasource in SQL Server Stored Procudure

怎甘沉沦 提交于 2019-12-02 09:51:17
I have a SQL Server that houses Several Databases. I have a Main Database that holds several tables with entities and ID numbers. Then, each one of those entities has a correlating database (not a table, but database) with all of its information. For example, if the an entity in the MAIN database has an ID number of 1, there would be an SubDatabase1 Database on the same SQL Server. Essentially, what I am trying to do is create a stored procedure in the MAIN Database, that collects data from the SUB Database, but the SUB database I collect from should be determined based on the ID number passed

Use .setDataSource to get mediaMetadata from currently playing music app

為{幸葍}努か 提交于 2019-12-02 08:28:48
I want to get MediaMetadata (song title / artist) from the current playing android audio source for any app (spotify, google play, soundcloud, YouTube, blackplayer, etc) and am trying to use MediaMetadataRetriever.setDatSource Currently I have a function 'getActiveNotifications' in 'MainActivity.java' that gets called whenever a button is pressed, my code looks like this: public void getActiveNotifications(View view) { String temp ="temp"; Log.i("myTag", "Logging active notifications:"); //get data from MediaMetaData somehow? Always displays correct string in Logcat MediaMetadataRetriever mmr

I have a 2d (n x n) string array in C#, how do I get it ouputted to a webpage dynamically (Tried DataTables/Binding, etc…)

南笙酒味 提交于 2019-12-02 05:57:58
I have an n by n String array that needs to be outputted to a web page, I have found some solutions that require many many (read: many) lines of code (usually converting it to a DataTable then binding to a GridView). And almost all of these solutions will not even work for the dynamic nature of my arrays (I do not know ahead of time how many columns and rows are going to be generated, nor the names of the columns: it's user controlled). I find this to all of these solutions to be somewhat ridiculous and in some cases larger than my whole module that I have already designed, simply to output a

EF5 Grdiview only Count & ReadOnly

时光毁灭记忆、已成空白 提交于 2019-12-02 04:10:31
问题 In Entity Framework When I add Drag from Datasource the grid view only shows Count & Is Read Only Column, I have also tried manually assigning datsource but still not working. 回答1: Through some researh I have found a solution. BTW I am using code first. In the parent entity I changed the child property from list to ObservableCollection. I also added the namespace System.Collections.ObjectModel to my class. Old: Public Overridable Property PageElements As List(Of PageElement) New: Public

Use .net object as data source in Crystal Report 2008

浪尽此生 提交于 2019-12-02 03:04:38
问题 HI all, I created a .net object (ex: A ) which contain data have been collected from tables. Next, i create a List<A>() and pass to SetDataSource() method of ReportDocument object. When i run then an Exception have been throwed : "CrystalDecisions.CrystalReports.Engine.DataSourceException: The data source object is invalid" I don't know the Exception above, Error message isn't clear. Can anybody explain for me? ex: the .net object must inherit from ISerializable..... 回答1: I had this same

Use .net object as data source in Crystal Report 2008

给你一囗甜甜゛ 提交于 2019-12-02 01:11:11
HI all, I created a .net object (ex: A ) which contain data have been collected from tables. Next, i create a List<A>() and pass to SetDataSource() method of ReportDocument object. When i run then an Exception have been throwed : "CrystalDecisions.CrystalReports.Engine.DataSourceException: The data source object is invalid" I don't know the Exception above, Error message isn't clear. Can anybody explain for me? ex: the .net object must inherit from ISerializable..... I had this same error, but encountered it when using an object as the data source for the report. I had the following code: var

One DataSource for multiple controls

牧云@^-^@ 提交于 2019-12-01 18:09:45
I have two ListBox in my winforms application, I assigne a datasource for both of them as follow: private void MakeMeasurementUnits() { var units = new List<MeasurementUnit> { new MeasurementUnit {Name = "Current", SiUnit = "A"}, new MeasurementUnit {Name = "Voltage", SiUnit = "V"}, new MeasurementUnit {Name = "Time", SiUnit = "s"}, new MeasurementUnit {Name = "Temprature", SiUnit = "°C"} }; lbxXunit.DataSource = units; lbxYunit.DataSource = units; } The strange thing is (or maybe because it is my first time!!), in the form when I click on items of one of these lisboxes, the same item in the

Why DataBinding doesn't work on second time around?

跟風遠走 提交于 2019-12-01 17:51:50
The error I got when I change the datasource of BindingSource "databinding cannot find a row that is suitable for all bindings row that is suitable for all bindings" this.RemoveAllBindings(); // My work-around for the meantime bdsOrder.DataSource = _ds.Tables["orders"]; // errors here on second time around(first time is blank datatable, second time is when i open existing record, then it errors), dataset comes from Remoting bdsOrderDetail.DataSource = _ds.Tables["order_detail"]; bdsPhoto.DataSource = _ds.Tables["order_photo"]; bdnPhoto.BindingSource = bdsPhoto; My Helper extension method work

Bind JNDI datasource in tomcat?

╄→гoц情女王★ 提交于 2019-12-01 17:26:00
问题 Is it possible to bind programatically a DataSource to Tomcat's 6 JNDI? I want to create a DataSource on the fly and then make it available through JNDI ( to ColdFusion for instance ). This is what I have: public void bindToConext(DataSource dataSource) throws NamingException, SQLException { Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); envContext.bind("jdbc/mydatasource", dataSource); } But I'm getting this exception: javax