I'm using NHibernate + Fluent to handle my database, and I've got a problem querying for data which references other data. My simple question is: Do I need to define some "BelongsTo" etc in the mappings, or is it sufficient to define references on one side (see mapping sample below)? If so - how? If not please keep reading.. Have a look...
I have a database table which records all field changes in all database tables which are mapped to Entity Framework Entities (via SQL Server triggers).
I am building a service which outputs these field changes to the client.
However, the client needs the EF-Entity object and property names and not the database table and field names.
F...
I have two machines, Say Machine1 and Machine2. I have mapped one shared folder in Machine2 in Machine1 as Z.
I started one application say App1 which list all drives of machine and the application is in Machine1. I started this App1 from Machine1 and I got all my drives
Including the mapped drive 'Z'. But when I Started the App1 which i...
Guys/Gals,
I am trying to use CFDirectory to get a file listing of a mapping created in ColdFusion Admin. So far I cannot get the list to populate, but if I reference the physical path the full file list is displayed.
Here's the code I'm using:
<cfoutput>
<cfdirectory action="list" directory="mymapping" name="test"><cfdump var="#test#"...
I have some database tables named "Project", "Employee" and "Branch". An employee can work simultaneously on more than one project. Similarly, in a project, there are multiple employees. Also, a project is conducted at a particular branch. To maintain all these relationships, I am using a "project_employee_branch" table, which will store...
I have 2 coordinates in Lat Long format.
How do I determine from Point A (eg New York 37.149472,-95.509544 ) the direction in degrees to point B (eg Toronto 40.714269,-74.005973)
I'm looking for a value like "340 Degrees"
In C#
...
Is it possible to use SQL Server's replication service to replicate from table A on a given server to a different schema on table B?
ie,
Table A ---------- ID
int Name varchar(20) Data
text
Table B ---------- ID
int Name varchar(20)
Description varchar(10)
Replication would copy "Name" from table A to table B for a gi...
I have been learning Hibernate for the past few weeks, I have gotten most of what I learned to work but have a question on the efficiency of a One-to-Many mapping. It works, but I am pretty sure that it could be tweaked quite a bit. When saving, I notice that there are three queries that get executed, an insert for the "Parent" object, a...
As a new Hibernate user, I have heard that a good pattern for adding some helper methods to generated classes is to add them in a subclass. For example:
// generated via Hibernate mapping file
public class GeneratedClass {
long id;
String someValue;
// etc, etc.
}
// my own class with pretty printing method
public class MyGener...
I have an Enterprise license for Bing Maps which enables me to view my transactions, but what I'd like to be able to is also break the transactions down by user. I'd like to know if certain customers are racking up higher than expected transactions.
It's my understanding that the Bing API will allow me to track by client IP, but that do...
Hi all!
Today I have an Entity Framework Question. I have two Tables: Projects and Projects_Rights
Projects contains some Projects...
Project_Rights contains access rights for each Identity (=User) for each Project. This Table is computed by triggers/functions.
Mapping those table into one entity was no challenge:
class Project
{...
Omnicompletion works pressing <C-X><C-O> making a dropdown list appear.
I wanted to map it as <S-Tab> <C-X><C-O> but first I wanted to test it as: <C-F5> <C-X><C-O>.
It does complete the word but the dropdown list doesn't show up. (the same happens with the plugin SuperTab).
Any suggestions?
EDIT: *it Works* like this inoremap <S-F5> <...
How would you go about designing a system based on arbritary zones? Think of the American states - basically the whole map is carved up into irregular zones. Then again another one might show a salesmans territory, TV stations coverage area etc. I need to be able to retrieve the current GPS position and determine which zone I'm in. I can...
I want to define a mapping in my .gvimrc such that if the last key pressed is held, the triggered action is repeated. Specifically, I want to do something like
map <SPACE>t :set transparency-=1
map <SPACE>T :set transparency+=1
for MacVim, but I want the transparency to continue to be decreased/increased when t/T are held (don't want ...
What I need to do is automap subclasses of my abstract page class. I need to find them in a list of assemblies that I get a runtime (at the initialization stage). I don't have any reference to the assemblies from the assembly of my mappings.
My page class looks something like this:
public abstract class Page : EntityBase
{
public ...
I have some shapefiles I want to plot over Google Maps tiles. What's the most efficient way to do this? One path might be to use the pkg RgoogleMaps, however, it is still unclear to me how to do this. I assume using PlotonStaticMap with some combination of reformatting the shapefile data
...
I've searched around for a solution as best I can, but it seems I'm at a loss somewhere. This is my first dive into Fluent NHibernate & NHibernate.
The short version (which will still be long) is that I have a database that has tables User, Role, UserRoles. The relationship b/t them should be fairly intuitive...A user can be assigned mu...
I am currently using version 2.1.2.4 of NHibernate.
I am attempting to fetch a child collection of pages for a chapter on a non-PK column by using the element mapping configuration.
I obtain a property not found exception for property "chapterToPages", which is really just grouping the 2 properties on the class to create the the propert...
I have two entities, lets call them A and B, which have a ManyToOne mapping to another entity, say C
So I typically have something like this:
a1->c
a2->c
b1->c
Lots of A's and B's pointing to the same C.
How do I get Hibernate to remove c when I remove the last a and b?
...
Iam using LINQ To SQL with POCO's and XML mapping. I am getting the following error when I try to run the application: Cannot find type 'MyProject.DataTransfer.User' from mapping.
Below is the mapping:
<Table Name="Users" Member="User">
<Type Name= "MyProject.DataTrasnfer.User">
<Column Name="UserID" Member="UserID" ...