dataprovider

Firebird & Visual Studio 2010 Failed to find Data Provider

只谈情不闲聊 提交于 2019-12-24 11:59:54
问题 I have Windows 7 64bit. I am trying to use Firebird with VS 2010. I get the following error: Failed to find or load the registered .Net Framework Data Provider. I have done the following Installed "NETProvider-2.6.5.msi" Extracted "FirebirdDDEXProvider-2.0.5.zip" I copied the .dll's from the DDEX zip file to the directory C:\Program Files (x86)\FirebirdClient The contents of which are: FirebirdSql.Data.FirebirdClient.dll FirebirdSql.Data.UnitTests.dll FirebirdSql.VisualStudio.DataTools.dll

Convert from query to ModelSearch of Yii2

北战南征 提交于 2019-12-23 17:18:47
问题 I'm new in Yii2, and I have a query with right result: SELECT DISTINCT workloadTeam.project_id, wp.project_name, workloadTeam.user_id, workloadTeam.commit_time, wp.workload_type FROM (SELECT p.id, p.project_name, w.user_id, w.commit_time, w.comment, w.workload_type FROM workload as w, project as p WHERE w.user_id = 23 AND p.id = w.project_id) wp INNER JOIN workload as workloadTeam ON wp.id = workloadTeam.project_id But in my ModelSearch.php, I wrote: $user_id = Yii::$app->user->id; $subquery

“Unable to find the requested .Net Framework Data Provider. It may not be installed.”

女生的网名这么多〃 提交于 2019-12-23 12:37:57
问题 I know that there have been a lot of other postings on this error but none have been able to shed any light or help on my issue. I am using a straight up connection to SqlExpress, so no special Oracle or MySQL databases or anything. It seems like this should just fit like a glove. So the scenario is this, I have created a solution, comprised of a handful of projects; Repositories, Data (EF5.0), Utilities, a Test project and an MVC Web Application. The goal is to simply access an underlying

How can I get the ItemRenderer of a Flex Spark List from its DataProvider Object?

試著忘記壹切 提交于 2019-12-23 12:28:58
问题 In Flex I can create an ItemRenderer to represent each item in the Lists DataProvider but how do I access the instance of the ItemRenderer via the DataProviders Object? Something like myList.getItemRenderer(dp.getItemAt(10)); 回答1: public function getItemRenderer(list:List, item:Object):ItemRenderer { var dataGroup:DataGroup = list.dataGroup; var n:int = dataGroup.numElements; for (var i:int = 0; i < n; i++) { var renderer:ItemRenderer = dataGroup.getElementAt(i) as ItemRenderer; if (renderer

Yii2 : how to cache active data provider?

徘徊边缘 提交于 2019-12-20 10:55:42
问题 In my PostSearch model I have this code : public function search($params) { $query = Post::find()->where(['status' => 1]); $dataProvider = new ActiveDataProvider([ 'query' => $query, 'sort'=> ['defaultOrder' => ['id' => SORT_DESC]], 'pagination' => [ 'pageSize' => 10, ] ]); if (!($this->load($params) && $this->validate())) { return $dataProvider; } $query->andFilterWhere([ 'id' => $this->id, 'status' => $this->status, ]); $query->andFilterWhere(['like', 'title', $this->title]) -

Clistview in yii Undefined variable dataProvider

青春壹個敷衍的年華 提交于 2019-12-20 06:22:44
问题 I need a list view in my index.php . This is does not have any model so I used CSqlDataProvider for declaring the data provider and rendering it to the index from the controller. Here is my controller action... public function actionIndex() { $sql="select * from Ads"; $totalItemCount=20; $dataProvider = new CSqlDataProvider($sql, array( 'totalItemCount' => $totalItemCount, )); $this->render('index',array('dataProvider'=>$dataProvider)); } Here is my index.php code.... $this->widget('zii

Deploying and Configuring ODP.NET to work without installation with Entity Framework

隐身守侯 提交于 2019-12-17 05:33:20
问题 How do you deploy and configure ODP.NET to work without installation with Entity Framework? A. How to deploy and configure Oracle.DataAccess.Client? B. How to deploy and configure Oracle.ManagedDataAccess.Client? C. What do you need to do in order to make builds with EDMXs with Oracle SSDLs work? D. What do you need to install for designer support? 回答1: This answer summarizes (hopefully) all the steps required, many of which documented in various places online and might save someone hours of

Flex tilelist itemrender instance not match the dataprovider length

不羁的心 提交于 2019-12-13 19:40:18
问题 I use the custom itemrenderer for my Tilelist control. When I run my application. I found that the customitemrenderer's instance count was not equal to the dataprovider listItem count. There are only one item in the dataprovider list, but got 2 customitemrenderer instances. I count'd not find the reason. Can anybody help me. Many thanks! 回答1: For list based components, flex does this for efficiency. Imagine a dataprovider with 1000 rows, but the tile list only displays 9 at a time (3X3).

Writing my own Provider Class in ASP.NET

微笑、不失礼 提交于 2019-12-13 05:24:12
问题 Note: I DON't want to write custom membership provider. I want to write my own Provider class so I can define it in web.config and access it like Membership class. Here is a sample of my class (it has many other static methods): public static class MySqlHelper { private static string constring = ConfigurationManager.ConnectionStrings["MyConnString"].ConnectionString; public static int ExecuteNonQuery(string mysqlquery) { SqlConnection conn = new SqlConnection(connString); SqlCommand cmd = new

How Can I Prevent Recurring Automatic Connections to Oracle Database?

安稳与你 提交于 2019-12-12 19:14:58
问题 Background We have a C#/VB.net client application consuming a WCF service which connects to an Oracle database. The web service connects to the database using the .NET framework's data provider for Oracle (not to be confused with ODP). Our testers have experienced sporadic Oracle account locking which seems to happen shortly after changing the user's Oracle password. The dba_audit_trail logs have revealed what seem to be automated connection attempts at very regular intervals (i.e. every two