So I have this Omniture object. It's called s.
s
Inside s, we keep track of a bunch of information, inside "props" and "eVariables".
s.prop5 = 'foo'
s.prop22 = 'baz'
s.var6 = 'bar'
Which prop variables and which evars we choose to assign, depends on which page we're tracking.
For example, on the homepage, we may wish to track p...
I'm trying to map an interface and concrete class with fluentnhibernate.
here's my interface / class:
public interface IUser
{
int Id { get; set; }
}
public class User: IUser
{
public int Id { get; set; }
public string Name { get; set; }
public string Password { get; set; }
}
here's my mapping files:
public class IUserM...
Hi,
I'm migrating the aplication of my company (that nowadays run over SQL Server and Oracle) to ASP NET MVC and Entity Framework for persistence.
A create my Entity Model based on SQL Server Database e separately I create a SSDL for Oracle (for Oracle I use DevArt dotConnect for Oracle Provider) and I get some pain troubles.
My table...
I have an interesting scenario where I have a given table that maps to an entity. However, there is another version of the table which gets populated as part of a nightly process and has the exact same columns as the first table. Without getting into too many details, the second table is a "working" table with a small subset of records. ...
Let me first say I am aware of this faq for Mach-II, which discusses using application specific mappings as a third option when:
locating the framework in the server root is not possible and
creating a server wide mapping to the Mach-II framework directory is impossible
Using application specific mappings would also work for other Co...
I am working with javascript and here is what I am trying to do:
1. Send a get request which looks like "http://localhost:8080/myapp/verify.htm?verifyId=Agkvhs"
My requests reaches my verify.jsp in which I have javascript which does some special things and then should redirect to another url WITH the verifyId .
My code looks like this:
...
I'm trying to use AutoMapper to map from DTO's to my Domain.
My DTO's might look like this:
public class MyDTO
{
public string Name { get; set; }
public bool OtherProperty { get; set; }
public ChildDTO[] Children { get; set;}
}
public class ChildDTO
{
public string OtherName { get; set; }
}
My Domain objects like th...
I have the following mapping
@Entity
@SequenceGenerator(name="sacpSequenceGenerator", sequenceName="SACP_SEQ")
public class Sacp {
private Integer id;
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="sacpSequenceGenerator")
public Integer getId() {
return this.id;
}
// other setter's a...
I am a newbie to NHibernate and trying to create a XML mapping for this scenario:
public class Catalog
{
public virtual Guid ID { get; set; }
public virtual string Name { get; set; }
public virtual IDictionary<string, Product> Products { get; set; }
}
The key in the IDictionary is the name of the Product.
public class Pro...
error:
could not insert: [NHibernateExperiment.Domain.Customer][SQL: INSERT INTO Customer (FirstName, LastName, Address) VALUES (?, ?, ?); select SCOPE_IDENTITY()]
Mapping:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="NHibernateExperiment.Domain"
...
Is there a good way to do multiple substitutions for aliasing a command?
For example
alias cmd = 'ssh -R $1:$2:$1:$2 $3 | something {$1, $2, $3}'
cmd 127.0.0.1 1234 server
Something like this..
Actually, this doesn't really make any sense to pipe the output like this, but similar syntax is what I'd like to see.
It's be nice to have...
Hi,
I have a varbinary field in my sql server database that needs to be varbinary(max). I create my database with NHibernate and I use Fluent Nhibernate for my mappings.
I also use SQLite for my unit tests, I use the same mappings I just change the configuration before creating the database in memory.
I get the following problem.
I c...
I started a small project and wanted to use Subsonic's SimpleRepository for my database layer. If I have table in my database called Member and I want to create a POCO called TeamMember. Can I map class TeamMember to table Member via an attribute or some other method? It is possible that what I'm asking is not how the SimpleRepositor...
I have three tables: Login, LoginRoles and Roles. Login joins to LoginRoles and LoginRoles joins to Roles. LoginRoles is a many-to-many table, and I want to constrain the columns as being unique TOGETHER.
LoginRoles: MemberId (int), RoleId(int)
This is similar to the aspnet_UsersInRoles table in the default membership database:
Tabl...
For some reason it seems that everyone writing webpages about Poincare discs is only concerned with how to represent lines and measure distances.
I'd like to morph a collection of 2D points (as defined by x,y coordinates in the Euclidian plane) onto a Poincare disc, but I have no idea what the algorithm is supposed to be like. At this p...
I've formerly used L2S and am looking at using NHib along with the Sharp Architecture on a project. I've started prototyping and come up against the first issue which i have no idea how to google for.
Given a POCO with some simple properties, and one reference property (Category - class not shown here):
public class Post
{
public Pos...
I have an employee class with as follows:
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
}
The properties FirstName and LastName are stored in Employee table in Database1. UserName and Pa...
Hi All,
So i have a set of four points in 3D Space.
P1 [0, 0, 0]
P2 [128, 0, 0]
P3 [0, 128, 0]
P4 [128, 128, 0]
Which I'm then projecting orthographically to the screen effectively giving me two wireframe triangles in screen space.
I now want to map a texture to this "plane" comprised of the two triangles. So i take my square...
UPDATE: this stuff has evolved into a nice project, see it at http://valueinjecter.codeplex.com
check this out, I just wrote a simple automapper, it takes the value from the property with the same name and type of one object and puts it into another, and you can add exceptions (ifs, switch) for each type you may need
so tell me what do...
I'm working with a mapping application (worldwind) and trying to determine the minimum and maximum latitudes and longitudes that are currently displayed. I have access to the frustum, but I'm not sure how to account for the fact that the globe can have its heading and/or pitch changed. Any help on this problem would be appreciated.
than...