Hi,
I'm interested in having a look at a small sample project that would highlight a good technique to separate data access layer (using Entity Framework) to business logic layer. In C# would be good.
That is, it would highlight how to pass data between the layer without coupling them. That is, the assumption here is not to use the EF classes in the Business Logic layer, and how to achieve this low coupling, but minimizing plumbing code.
I am going to use the DAAB to prevent a lot of manual labor in my database intensive application. But before I get started I would like to know if there would be any noticeable perfoemce differences between using the native ado.net datareader and the DAAB.
Hi all,
I have an object in PHP with some very odd property names. I just need to know how to access a property when it's name is "//www.w3.org/1999/02/22-rdf-syntax-ns#type".
I found something that suggested
$object->{'//www.w3.org/1999/02/22-rdf-syntax-ns#type'};
but that doesn't seem to work.
Thanks in advance
Rob
I have added and removed fields in my models.py file and then run manage.py syncdb. Usually I have to quit out of the shell and restart it before syncdb does anything. And then even after that, I am getting errors when trying to access the admin pages, it seems that certain new fields that I've added still don't show up in the model:
Caught an exception while rendering: no such column: mySite_book.Title
Does VistaDB support 'Update model from Database' feature in EF4? I'm receiving this message:
" ... 'System.ArgumentNullException' 'Value Cannot be Null'
Parameter name: providerInvariantName"
I have a web service that contains 2 asmx files (public.asmx and private.asmx). On IIS6 I could go to the properties of private.asmx then, from the 'File Security' tab, deny all computers access except the IP address for localhost.
In IIS7 I only seem to be able to do this for an entire folder. What am I missing?
Hi All,
Is there a way to display pdf from local directory or database in a object tag.
My problem is I am trying to display pdf print dialog after pdf is loaded.
This is possible if I load pdf using object tag, but currently my pdf is getting loaded dynamically using response.binarywrite.
Any help will be highly appreciated.
regards
Nilesh
HI,
Do anyone has idea of specific private api's required for accessing the sms, calendar, notes, photos, videos, and all the datas stored internally from the iPhone. I dont want to jailbreak my device. So i cant access their respective .db files . Any help will be greatly appreciated.
Best Regards,
Mohammed Saiq.
I'm interested in knowing if there is a pure object oriented database for PHP. Something similar to zodb for Python.
I'm not really looking for an object-relational mapper. So no active record clones...
I am investigating for a tool that allows a user to perform in a user friendly way queries to database for extracting datas and creating reports.
Primary requirement is that we can't know queries users are going to do. So we need to design a flexible UI allowing them to specify in a non technical way.
My question is: do you know any tool that does something similar? Have you some inspiring user interface?
How can I access ConfigurationManager.AppSettings in my Windows Forms Application?
The error message reads: The name 'ConfigurationManager' does not exist in the current context.
hi
I know about the built-in I18n in Rails, but how can I select a database field per locale?
My model structure is something like this:
title #default (englisch)
title_de #(german)
title_it #(italian)
In my template I want to be able to write only
<%= @model.title %>
and should get the value in the right language.
Is there a plugin or a solution to use different fields per different locale settings with a structure like mine?
I am querying a database and getting the result set as an arraylist. I would like to return this list as XML, but not sure how to do it.
Does anyone have an example of returning a result set as XML and is using an Arraylist the best way to do this?
I've wrote a PHP script to export a Foxpro database to other formats by using ADODB (http://phplens.com/lens/adodb) library to access Foxpro OLE DB provider.
Everything worked fine except the date fields are mangled and become like these:
11/17-/2-00
3/4/-20-08
By comparing to actual data I can guess that it is probably in the format of MM/DD/YYYY or m/d/YYYY.
How can I properly export the date field?
I have a decorator that I use for my views @valid_session
from django.http import Http404
def valid_session(the_func):
"""
function to check if the user has a valid session
"""
def _decorated(*args, **kwargs):
if ## check if username is in the request.session:
raise Http404('not logged in.')
else:
return the_func(*args, **kwargs)
return _decorated
I would like to access my session in my decoartor. When user is logged in, I put the username in my session.
Hi to all,
I am developing an application using QtRuby and postgresql. I sucessfully developed and running sucessfully in Linux. Now i want to run the same application in windows. But i am failing to connect to database(Postgresql). I am getting the following errors:
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
Can any one help how to resolve my problem. I am waiting for your replies.
Regards,
Narasimha Raju.Naidu
Is it possible to access Google Chrome's cache from within an extension?
I'd like to write an extension that loads a cached version of a page when the online one can't be accessed (e.g. Internet connectivity issue).
Updated: I know I could write an NPAPI plugin accessible through an extension to accomplish this but I'd rather not suffer writing one... I am after a solution without resorting to NPAPI, please.
My system administrators advice me to be careful when setting access control to files and directories. He gave me an example and i got confused, here it is:
a file with protection mode 644 (octal) contained in a directory with protection mode 730.
so it means:
File:101 100 100 (owner, group,other: r-x r-- r--)
Directory:111 011 000 (owner, group,other: rwx -wx ---)
How can file be compromised in this case ?
Just to be on the safe side, what's the best practice to ensure that only my application has access to my webservice, which is hosted on a public server? Should I implement I shared key or something?
My webservice is hosted on Googles App Engine and my Application runs on iPhones and iPads.
If you need further information, just ask.
Thanks,
Henrik
Hi
Suppose I insert a data point into a sqlite3 database on a nightly basis. Could anyone tell me how to obtain the data points for the past 30 days?
Thanks,
Raj
Hi ,
Is there any iphone library for accessing the full photo gallery,which should help me to access and upload all the images.
Not looking like three20 application ,expecting some information from iphone api's
Thanks in advance.............
Hello,
When using sharepoint designer you can quite easily use current item and perform different actions with it when using workflows etc. However, the options available are limited. I am wondering how to access current item in a list through visual studio 2010 and use and assign values from its fields to variables or items in another list automatically using C# code.
Any help would be most appreciated.
Thanks