|
Hi,
I'm currently looking for an OR-mapper to use for a side project I'm about to start. Since we're using an inhouse developed OR-mapper at work I don't really know much about how other mappers work (and have a pretty incomplete picture of which exist...
Started by andyp on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
ListItems would have a foreign key.
If you have two tables, one for Lists and one for ListItems.
|
|
Is this possible? If I have only one ip address then changing the MX record shouldn't matter as it's the same as the www. But my email is on a different machine altogether.
Started by johnny on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
You have a private network with a router connecting it to the outside?
If you only have one public server, then there's nothing you can do: only one server can be using a given public IP at the same address and TCP port 25 (SMTP) to your....
|
|
I had a following structure:
User has many books in his history
which was translated to the following
class User { ICollection<Book> History } // C# User -> UserHistory (UserId, BookId) -> Book // DB
Now I want to add a date to the history...
Started by Andrey Shchekin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Think of many-to-one as an object reference in this case, where it....
Many different users can read the same book (and perhaps the same user can read a book more than once) .
Is actually a many-to-one rather than a one-to-one.
|
Ask your Facebook Friends
|
There is one form, inside the form there are many checkboxes. Two operations can placed upon these ticked checkboxes. Since there is only one "submit" button for a form, how to walk around this?
I know I can set two buttons, one button for each operation...
Started by Steven on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I dont know which language/framework you are using, but with one submit button in any of them is a matter of checking the checked or unchecked.
You dont need 3 buttons, you need one button or none.
|
|
I currently have a user's table which contains a one-to-one relationship for Youtube OAuth tokens. However, I now want to support multiple video sites and want to break this into a one-to-many relationship.
I have setup the new tables:
tokens - cols: ...
Started by Matt McCormick on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That also makes.
For a one-to-many relationship, you just need a user_id field in the tokens table.
|
|
Hi,
I want to model an article with revisions in Django:
I have following in my article's models.py:
class Article(models.Model): title = models.CharField(blank=False, max_length=80) slug = models.SlugField(max_length=80) def __unicode__(self): return...
Started by Roland Tepp on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
A one-to-one or foreign key field on your Article pointing to your Revision, a column will be added__(self): return self.title
That said, it's rare that a one-to-one relationship is actually useful.
|
|
Just curious what is the best practice for solving the following issue. I have institutions, accounts and users tables. Institutions and accounts have a one-to-many relationship. Institutions and users have a one-to-many relationship. Users and accounts...
Started by Striker on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To_account mapping table with two columns, one with the account foreign key, and one with users foreign.
|
|
Using C# in WPF, together with LINQ to SQL and LINQ for quering my generic collections, I noticed that sometimes, when I use several methods one after another and results of the first one are needed for next function, I should care about finishing actions...
Started by rem on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Of solving this:
Use a lock mechanism or redesign your methods to feed into each other, forcing one of code
Refactoring your code would involve passing the value of one method into another method in the callback of the first one ....
|
|
NHibernatians!
I have a table [dbo].[Wibble] and another table [dbo].[WibbleExtended].
[Wibble] is the main table and [WibbleExtended] is an optional table where some other fields are stored. There are far fewer entries in the [WibbleExtended] table than...
Started by IainMH on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Use insert=false and update=false in one of the two.
Check to two properties mapped to the same column.
Allows you to join multiple tables to form one entity; that relationship can also be optional.
|
|
I make allot of simple single executable applications for various things at home and at work. Icons always seem to be a problem for me I am not a designer. Like most I can do a little here and there with photoshop, gimp and paint.net. However I should...
Started by Copas on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Otherwise there....
Typically I just take something that's already in the development library .
I guess you'd just have to convert them over to ico's .
The gravatar icon is a cool idea.
Lgpl icons for use in commercial, gpl seems to work for everything else .
|