How to set up auto mapping to map System.Collections.Generics.ISet<T> correctly?
I tried implementing IHasManyConvention, but in intellisense it seems that IOneToManyCollectionInstance does not have anything for that(?)
I have dictionary like
d = {'user_id':1, 'user':'user1', 'group_id':3, 'group_name':'ordinary users'}
and "mapping" dictionary like:
m = {'user_id':'uid', 'group_id':'gid', 'group_name':'group'}
All i want to "replace" keys in first dictionary with keys from second (e.g. replace 'user_id' with 'uid', etc.)
I know that keys are immutable and i know how to do it with 'if/else' statement.
But maybe there is way to do it in one line expression?
When I open my SharePoint site collection everytime I am getting the pop up to enter the credential. How I can get rid off this. I checked in the alternate access mapping but I couldnt figure out anything difference,as the internal URL and external URL s are same. Can anyone help me regarding this??
Trying to write a deployment script, working on a repo in a different path. The "git-dir" flag seems to work fine for most commands, but not for submodule work. Am I missing a path directive?
Works:
git --git-dir=/tmp/repo_path/.git log
Doesn't work:
git --git-dir=/tmp/repo_path/.git submodule init
Error:
No submodule mapping found in .gitmodules for path 'path_to/submodule'
Much thanks for any help.
I have two product tables Product1 and Product2. There is a one 2 one mapping on the field ProductId.
What I want is to get all the product ids where the Product2.Exported field is false AND
Where the product ids that are in Product1 but not in Product2 table.
Right now I have two queries that I'm trying to mash into one.
SELECT ProductId FROM Product1 WHERE ProductId NOT IN(Select ProductId From Product2)
SELECT ProductId FROM Product2 WHERE Exported = 0
This list is taken from the official Google App Engine roadmap:
SSL for third-party domains
Background servers capable of running for longer than 30s
Ability to reserve instances to reduce application loading overhead
Ability to select different availability vs. latency options for Datastore
Support for mapping operations across datasets
Datastore dump and restore facility
Raise request/response size limits for some APIs
Improved monitoring and alerting of application serving
Support for Browser Push (Comet) communication
Built-in support for OAuth & OpenID
What is your most awaited feature and why?
Objects oriented databases seem like a really cool idea to me, no need to worry about mapping your domain model to your database model, no messing around with sql or ORM tools. The way I understand it, relational DBs offer some advantages when there is massive amounts of data, and searching an indexing need to be done. To my mind 99% of websites are not massive, and enterprise issues never need to be thought about, so why arn't OO DBs more widely used?
Hi all,
I am using AutoMapper in my project along with, NHibernate and ASP.NET MVC 2.
As the title states, if I have a list of DTOs or a DTO inside the parent DTO that I am mapping to the View Model, should I flatten out the inner DTOs as well ?
Thanks
Is it possible to move files from a network location that requires credentials to another network location that also requires credentials without mapping any drive. (ie: Without any use of P/Invoke)
Example:
FileInfo fi = new FileInfo(@"\\SomeComputer\SomeDrive\SomeFolder\someFile.txt");
fi.MoveTo(@"\\AnotherComputer\AnotherDrive\AnotherFolder\AnotherFile.txt");
This works fine if the source and destination network drives are already mapped but if they are not It doesn't.
I'm looking for a way of mapping a uid (unique number representing a system user) to a user name using Perl.
Please don't suggest greping /etc/passwd :)
Edit
As a clarification, I wasn't looking for a solution that involved reading /etc/passwd explicitly. I realize that under the hood any solution would end up doing this, but I was searching for a library function to do it for me.
When I enable 32 bit applications on the application pool of a website running on Server 2008 web IIS7, a handler mapping for *.html - asp.dll no longer works. Can anyone explain why?
I have a Java class with a property like this
private Object myObj;
When I try to save the class using Hibernate annotations, I get the rather confusing error message "property mapping has wrong number of columns".
What is the correct approach to persisting a class containing a generic property such as this?
I have one service that will create a text file to local machine and then need to copy the same file to another server .
I am using " File.Copy(SourceFilePath, TargetFilePath, true);"
and getting an exception at the target file path "access denied. I am able to copy the files manually to that location ( TargetFilePath) .
any idea , what is going wrong ??
I don't have any network drive mapping with this target location.
Thanks in Advance
I need to create a custom route to list all the rooms in a given building. So, I want the url to look something like this:
/Building/1000/Room
Which would list all the rooms in Building 1000.
Is this the correct mapping for the route (to call the IndexByBuilding method in RoomController)?
routes.MapRoute(
"RoomsByBuilding",
"Building/{id}/Room",
new { controller = "Room", action = "IndexByBuilding", id = "" }
);
As I understand it, a group-box is just another control. Controls inside it are not owned by it, so unlike in Winforms, if you move a group-box the contained controls stay put. What would be the nicest way to address this? Just create your own data-structure mapping controls to 'container' group-boxes so that when the container is moved the children are automatically moved?
I have got a .NET winform application that uses a Web Mapping Service that is password protected. Unfortunately I cannot attach a username and password to requests, ( the request are generated from a GIS mapcontrol)
I can think of two ways around it
Intercept all web requests from my .NET app and add a username/password
Set up an Apache webserver and use proxypass to pass along my request adding a username/password
Does anyone know how to do either of these?
I have a flat file source from Excel that has a structure like this:
**People** Day1 Day2 Day3 Day4
Person1 someValue ...
Person2
Person3
And i would like the package to put this information in a database with standard columns 'Person', 'Day', 'Value'. Does anybody know how to do this - at the moment because the days are going along the top, the package is assuming these are seperate data columns when they are not really and the mapping is not working.
Coming from other web frameworks, I'm used to being able to map parts of a URL to method parameters. I know that web.xml provides a way to map an entire URL to a Servlet but is there a way to get more features out of this, such as mapping pieces of the URL to method parameters?
Hi all,
Does anyone have an idea what do the mind mapping applications use for drawing: Quartz 2D or Open GL? What would be the best way to implement this kind of application? Any advice is welcomed!
Thanks!
I want to generate Entity Framework 4.0 classes from a (legacy) database from a command line, but I have 2 transformations I want:
Tables/columns are lowerCamelCase and I want my classes/members to be UpperCamelCase.
I want to suffix my classes with "Dto".
Any idea how this might be accomplished? I'm a total newbie to EF, but I have a decent understanding of Linq to Sql and was able to accomplish the same task by doing: sqlmetal - dbml - xml mapping file and .cs file.
Hi All,
I am having a designation table with d_name as primary key which i am using in user table as foreign key reference .I am using hbm for mapping in designation hbm i have id defined as d_name mapped to database column .I am getting a error saying
"integrity constraint violation(user_designation_fk) parent key not found. "
Where am i going wrong /this error is coming while i am tring to add a user selecting a designation reading from designation table.
Sometimes you have to write some of your queries in native SQL rather than hibernate HQL. Is there a nice way to avoid hardcoding table names and fields and get this data from existing mapping?
For example instead of:
String sql = "select user_name from tbl_user where user_id = :id";
something like:
String sql = "select " + Hibernate.getFieldName("user.name") + " from " + Hibernate.getTableName(User.class) + " where " + Hibernate.getFieldName("user.id") + " = :id";
What's the Correct or most popular name for a Association table? I've heard Lookup,associative,resolving,mapping and junction table so far?
Thank you in advance;-)
Is it possible to use deepEarth with sql server 2008 spatial, or is there aney other open-source mapping solutions for Silverlight and sql server 2008.
Tanks for any thought on this.