The database is MySQL.
I have a simple case, a Player. He has an id and some other simple fields.
Code: Select all
CCNWDataContext ctx = new CCNWDataContext(csb.ConnectionString);
var allPlayers = from p in ctx.Players select p;
StringBuilder sb = new StringBuilder();
foreach (var player in allPlayers)
{
sb.Append(player.ID);
sb.Append(":");
}
Code: Select all
CCNWDataContext ctx = new CCNWDataContext(csb.ConnectionString);
var allPlayers = from p in ctx.Players where p.ID==1 select p;
StringBuilder sb = new StringBuilder();
foreach (var player in allPlayers)
{
sb.Append(player.ID);
sb.Append(":");
}
My setup is .NET 4.0, referring to:
Devart.Data, Devart.Data.Linq, Devart.Data.Linq.Vs, Devart.Data.MySql, Devart.Data.MySql.Linq. Do I need all of these references?
The version is 4.1.101, trial.
Any help would be appreciated, so far I dig this one the most of the tech I'm evaluating.