Hi
Is entity frameworth worth moving to for a new small app? About 10 tables and a WinForms app.
ie the alternative being DataTables/DataRows or Linq-to-SQL
I've got a relatively complicated Core Data relationship structure and I'm trying to figure out how to set up value dependencies (or observations) across various to-many relationships. Let me start out with some basic info. I've got a classroom with students, assignments, and grades (students X assignments). For simplicity's sake, we don't…
Hi,
If I wanted to have my data in SQL Server, but wanted to use a thick client WinForms application for users, what would be the best practice way to have calls occurring from WinForms to database? And how simple is this?
I guess I'm trying to gauge to what extent there are issues with this approach and one needs to go for some (a) middle…
The Compare method in Linq lets you find by an IEqualityComparer, but I can't find a counterpart method that allows you retrieve an item by the same comparer.
Is this really the best way to do it?
MyItem myFinderItem = new MyItem(keyField1, keyField2);
if (myList.Contains(myFinderItem, new MyEqualityComparer()))
{
MyItem myRealItem =…
Hey, say I have a text node via XPath. How would I replace the text node with a new DOM node? For example, this little patch of code will go through text nodes, and if text matches something, it will replace it with a corresponding image via img element.
I wanted something faster then a global page regex or even a element innerHTML regex.…
I'm extremely confused by the proper behavior of UITableView cell rendering. Here's the situation:
I have a list of 250 items that are loading into a table view, each with an image. To optimize the image download, I followed along with Apple's LazyTableImages sample code... pretty much following it exactly. Really good system... for…
I'm parsing various site feeds, and putting together a small library to help me do it.
Looking at the Atom RFC and RSS 2.0 specification, feeds from Twitter seem to be a combination. Twitter specifies an Atom namespace in an RSS 2.0 structure?
GitHub uses Atom, whereas Flickr (offers multiple but the default 'Latest' feed from user…
Hi,
If I am working on a class library how do I make use of Ninject here? Ie from the internal class library point of view and also from the client code?
For example:
should the class library have it's own IOC set up, or should it always assume the client code will supply?
if no (ie it's upto the client to have the IOC in place)…
Hi,
I have a Entity Framework design with a few tables that define a "graph". So there can be a large chain of relationships between objects in the few tables via concept of parent/child relationships.
What is a performance way to 'tree-walking' through my Entity Framework data?
That is I assume I wouldn't want to load the full…
Hi,
what test data approach/framework is recommended for .net unit testing? I'm in VS2010, C#, doing business logic layer testing.
By approaches I mean like: creating database snapshots, programmatically creating each time, etc etc. Like what approach to use to ensure at the start of each test the database is in a known state.
I am having issues were a workflow is stalled because there is an issue with sending an email (send email activity). Typically, this is simply solved by resuming the workflow. I'm wondering if there any way to react to a workflow error, so the user knows they need to go in and resume the workflow.
I'm also wondering about this…
I see the savepath has no value but does it default to something? Are the other values OK? I have access to the server and PHP files but how and what do I change?
The specific issue -
On page 1:
session_start();
$_SESSION['uType']=$row['usertype']; //save user type to session
print_r($_SESSION); //Prints the user type…
Say I have a sorted-set of integers, xs, and I want to retrieve all the integers in xs that are [x, y), ie. between x and y.
I can do:
(select #(and (>= % x) (< % y)) xs)
But this is inefficient - O(n) when it could be O(k log n) where k is the number of integers returned.
I am just learning clojure so here is…
In the following code,
// class overrides SPItemEventreceiver
public override void ItemAdding(SPItemEventProperties properties)
{
using (var site = new SPSite(properties.SiteId)) //SiteId is integer
{
...
}
}
The following exception is thrown:
System.IO.FileNotFoundException: The Web application…
Hi,
Does anyone know of a solid C# library / approach to manage a hierarchy/web type collection?
This would be a library that would basic consist of the concept of nodes & relationships, for example to model web pages/files linked under a URL, or modeling IT infrastructure. It would have key methods such as:
…
I am doing an MxRecordLookup. I am getting an error when calling the DnsRecordListFree in the .NET Framework 4.0. I am using Windows 7. How do I get around it? Here is the error:
System.MethodAccessException: Attempt by security transparent method to call native code through method.
Here is my code:
…
Hi,
Which lightweight SQL Server type could I use on my Dev machine for a C# VS2010 project? (e.g. sql server express, sql server ce, full version etc).
That is, I'm running on a VMWare fusion instance on my MacBook, and just want something to develop against for a C# VS2010 project. I'm planning on…
I have a python web application that needs to launch a long running process. The catch is I don't want it to wait around for the process to finish. Just launch and finish.
I'm running on windows XP, and the web app is running under IIS (if that matters).
So far I tried popen but that didn't seem to…
I'm trying to write a query to tell me which orders have valid promocodes. Promocodes are only valid between certain dates and optionally certain packages.
I'm having trouble even explaining how this works (see psudo-ish code below) but basically if there are packages associated with a promocode then…
Recently I have been getting a lot of complaints about the HTC Desire series and it failing while invoking sql statements. I have received reports from users with log snapshots that contain the following.
I/Database( 2348): sqlite returned: error code = 8, msg = statement aborts at 1: [pragma…
I would like to display a combobox drop down list as a textbox when it's set to be read only. For some reason I can't seem to bind the text of the selected item in the combo box to the textbox. This is my XAML:
<Style x:Key="EditableDropDown" TargetType="ComboBox">
…
Hey folks, I wonder if I'm doing something completely stupid here... I'm clearly missing something. I've gotten used to the pattern of defining properties of a custom class, however I seem to be hitting a point where extended classes do not recognize new properties. Case of point,…
Hi all, I'm trying to set up the Android SDK on Ubuntu. Someday I want to make apps that can reach most of the market.
I've heard I need to make the apps compatible with Android 1.6 for this. Does that mean everything I install should be for Android 1.6 (API level 4?). Will I…
I have a google app engine app that has been running for some time, and some javascript code that checks for a login cookie has suddenly stopped working. As far as I can tell, NO code has changed.
The relevant code uses the jquery cookies plugin (jquery.cookies.2.2.0.min.js)...…
Hi
Is Entity Framework worth moving to for a new small app? About 10 tables and a WinForms app.
ie the alternative being DataTables/DataRows or Linq-to-SQL