<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp</id>
  <title type="text">microsoft.public.dotnet.languages.csharp Google Group</title>
  <subtitle type="text">
  Microsoft .NET technology newsgroup.
  </subtitle>
  <link href="/group/microsoft.public.dotnet.languages.csharp/feed/atom_v1_0_msgs.xml" rel="self" title="microsoft.public.dotnet.languages.csharp feed"/>
  <updated>2009-07-05T16:37:13Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Martin Honnen</name>
  <email>mahotr...@yahoo.de</email>
  </author>
  <updated>2009-07-05T16:37:13Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/697718c825c4ca00?show_docid=697718c825c4ca00</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/697718c825c4ca00?show_docid=697718c825c4ca00"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Do you have &lt;br&gt; using System.Linq; &lt;br&gt; in your source code and a reference to System.Core in your references &lt;br&gt; (in solution explorer)?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Adam K.</name>
  <email>akoby...@nospam.op.pl</email>
  </author>
  <updated>2009-07-05T16:14:44Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/fe8afbce5b29af47?show_docid=fe8afbce5b29af47</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/fe8afbce5b29af47?show_docid=fe8afbce5b29af47"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  I red this document, but when i want read this value &lt;br&gt; int recCount = ctx.UsersGet().Count(); &lt;br&gt; I got compile error like this: &lt;br&gt; Error 2 &#39;System.Data.Linq.ISingleResul t&amp;lt;UsersGetResult&amp;gt;&#39; does not contain a &lt;br&gt; definition for &#39;Count&#39; and no extension method &#39;Count&#39; accepting a first &lt;br&gt; argument of type &#39;System.Data.Linq.ISingleResul t&amp;lt;UsersGetResult&amp;gt;&#39; could be
  </summary>
  </entry>
  <entry>
  <author>
  <name>Steven Blair</name>
  <email>steven.bl...@btinternet.com</email>
  </author>
  <updated>2009-07-05T15:06:16Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a83cfdaad8de8045/a77870b4bcc41d9d?show_docid=a77870b4bcc41d9d</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a83cfdaad8de8045/a77870b4bcc41d9d?show_docid=a77870b4bcc41d9d"/>
  <title type="text">Re: AttachConsole with Windows Service?</title>
  <summary type="html" xml:space="preserve">
  Security isn&#39;t an issue, its all locked away from unauthorised users. &lt;br&gt; Telnet has been fine, but I use Telnet for displaying menu options and I &lt;br&gt; can&#39;t clear the screen, so the Console would have made it easier. &lt;br&gt; Thanks for your advice. &lt;br&gt; *** Sent via Developersdex &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.developersdex.com&quot;&gt;[link]&lt;/a&gt; ***
  </summary>
  </entry>
  <entry>
  <author>
  <name>Jeroen Mostert</name>
  <email>jmost...@xs4all.nl</email>
  </author>
  <updated>2009-07-05T14:54:55Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a83cfdaad8de8045/8e153f2c2b5d9c8d?show_docid=8e153f2c2b5d9c8d</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a83cfdaad8de8045/8e153f2c2b5d9c8d?show_docid=8e153f2c2b5d9c8d"/>
  <title type="text">Re: AttachConsole with Windows Service?</title>
  <summary type="html" xml:space="preserve">
  Services cannot interact with the desktop unless you configure them that way &lt;br&gt; (and even that no longer works from Vista onwards, as they run in their own &lt;br&gt; isolated session). This is by design, because services typically run with &lt;br&gt; elevated privileges and allowing non-privileged programs to interact with
  </summary>
  </entry>
  <entry>
  <author>
  <name>Martin Honnen</name>
  <email>mahotr...@yahoo.de</email>
  </author>
  <updated>2009-07-05T12:56:59Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/56639db163c4fc02?show_docid=56639db163c4fc02</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/56639db163c4fc02?show_docid=56639db163c4fc02"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Then UsersGet().Count() should do, see &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://msdn.microsoft.com/en-us/library/cc472438.aspx&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; which lists a Count method.
  </summary>
  </entry>
  <entry>
  <author>
  <name>www.dudes-mall.com</name>
  <email>ladyjack...@gmail.com</email>
  </author>
  <updated>2009-07-05T12:57:41Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/22de0552317117f3/ff8001236d144255?show_docid=ff8001236d144255</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/22de0552317117f3/ff8001236d144255?show_docid=ff8001236d144255"/>
  <title type="text">www.dudes-mall.com Ed hardy,(tshirt$13,swim strunk$25,jean$30,handbag$34,cap$13,sunglass$12,shoes$25)nike shoes:$32,handbag:$35,NFL:$20,jean:$30,air force one shoes,lv,gucci,D&amp;G,bbc,coachUGG boot:$50,.free shipping!</title>
  <summary type="html" xml:space="preserve">
  Get Nike Shoes at Super Cheap Prices &lt;br&gt; Discount Ed hardy tshirt (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.dudes-mall.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy swimming suit (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.dudes-mall.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy jean (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.dudes-mall.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy shoes (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.dudes-mall.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy handbag (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.dudes-mall.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy other porduct (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.dudes-mall.com&quot;&gt;[link]&lt;/a&gt;)
  </summary>
  </entry>
  <entry>
  <author>
  <name>Martin Honnen</name>
  <email>mahotr...@yahoo.de</email>
  </author>
  <updated>2009-07-05T12:46:12Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/1d2499050fc60f99?show_docid=1d2499050fc60f99</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/1d2499050fc60f99?show_docid=1d2499050fc60f99"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  ISingleResult&amp;lt;T&amp;gt; implements IEnumerable&amp;lt;T&amp;gt; and that way should have a &lt;br&gt; Count method.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Adam K.</name>
  <email>akoby...@nospam.op.pl</email>
  </author>
  <updated>2009-07-05T12:46:03Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/7a198c08f8fa0b20?show_docid=7a198c08f8fa0b20</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/7a198c08f8fa0b20?show_docid=7a198c08f8fa0b20"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Hi, code generated for this stored procedure look like this: &lt;br&gt; [Function(Name=&amp;quot;dbo.UsersGet&amp;quot;) ] &lt;br&gt; public ISingleResult&amp;lt;UsersGetResult&amp;gt; UsersGet(){ &lt;br&gt; IExecuteResult result = this.ExecuteMethodCall(this, &lt;br&gt; ((MethodInfo)(MethodInfo.GetCu rrentMethod()))); &lt;br&gt; return ((ISingleResult&amp;lt;UsersGetResult &amp;gt;)(result.ReturnValue));
  </summary>
  </entry>
  <entry>
  <author>
  <name>Steven Blair</name>
  <email>steven.bl...@btinternet.com</email>
  </author>
  <updated>2009-07-05T12:31:31Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a83cfdaad8de8045/24e5a8e2c7d42afb?show_docid=24e5a8e2c7d42afb</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a83cfdaad8de8045/24e5a8e2c7d42afb?show_docid=24e5a8e2c7d42afb"/>
  <title type="text">AttachConsole with Windows Service?</title>
  <summary type="html" xml:space="preserve">
  I would like to launch a new Console Window when my Service starts up. &lt;br&gt; I tried using AttachConsole but this doesn&#39;t appear to work. &lt;br&gt; My guess is, this method is intended for GUI&#39;s only? &lt;br&gt; Any help would be appreciated. &lt;br&gt; Currently I need to connect to my Service via Telnet and allow the users &lt;br&gt; various options (means reading key entries over socket etc and the
  </summary>
  </entry>
  <entry>
  <author>
  <name>Adam K.</name>
  <email>akoby...@nospam.op.pl</email>
  </author>
  <updated>2009-07-05T12:40:41Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/43df23082b73b3e5?show_docid=43df23082b73b3e5</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/43df23082b73b3e5?show_docid=43df23082b73b3e5"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  User &amp;quot;Alexander Mueller&amp;quot; &amp;lt;mille...@hotmail.com&amp;gt; wrote &lt;br&gt; Not sure, ctx.UsersGet() returns &lt;br&gt; System.Data.Linq.ISingleResult &amp;lt;UsersGetResult&amp;gt; which not have &lt;br&gt; method/property Count(). &lt;br&gt; Any ideas? &lt;br&gt; Best regards &lt;br&gt; Adam
  </summary>
  </entry>
  <entry>
  <author>
  <name>Martin Honnen</name>
  <email>mahotr...@yahoo.de</email>
  </author>
  <updated>2009-07-05T12:22:47Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/cc1787de3ced7880?show_docid=cc1787de3ced7880</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/cc1787de3ced7880?show_docid=cc1787de3ced7880"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Try whether &lt;br&gt; ctx.UsersGet().Count() &lt;br&gt; gives you the count. &lt;br&gt; But if you do &lt;br&gt; int count = ctx.UsersGet().Count(); &lt;br&gt; and then &lt;br&gt; foreach (UsersGetResult usr in ctx.UsersGet()) &lt;br&gt; { &lt;br&gt; ... &lt;br&gt; } &lt;br&gt; you might pull the data twice from the database server so maybe &lt;br&gt; var users = ctx.UsersGet().ToList(); &lt;br&gt; int count = users.Count();
  </summary>
  </entry>
  <entry>
  <author>
  <name>Alexander Mueller</name>
  <email>mille...@hotmail.com</email>
  </author>
  <updated>2009-07-05T12:25:53Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/13c1418d54a2f39c?show_docid=13c1418d54a2f39c</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/13c1418d54a2f39c?show_docid=13c1418d54a2f39c"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Alexander Mueller schrieb: &lt;br&gt; Of course this will still execute the SP and fetch the data from &lt;br&gt; the DB-table &amp;quot;Users&amp;quot;. &lt;br&gt; If you&#39;d do the Count() directly on the mapped LINQ-table &lt;br&gt; - default name of the getter would be &amp;quot;TUserss&amp;quot; - LINQ-To-SQL &lt;br&gt; would translate the &amp;quot;Count()&amp;quot; extension-method into a &lt;br&gt; &amp;quot;SELECT Count(*) FROM Users;&amp;quot;.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Alexander Mueller</name>
  <email>mille...@hotmail.com</email>
  </author>
  <updated>2009-07-05T12:18:55Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/927528209068132e?show_docid=927528209068132e</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/927528209068132e?show_docid=927528209068132e"/>
  <title type="text">Re: LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Adam K. schrieb: &lt;br&gt; Since &#39;ctx&#39; seems to be of type System.Data.Linq.DataContext &lt;br&gt; and UsersGet() probably returns the data as &lt;br&gt; System.Data.Linq.Table&amp;lt;UsersGe tResult&amp;gt; &lt;br&gt; the extension-method &amp;quot;Count()&amp;quot; will give you the SP&#39;s rowcount. &lt;br&gt; SampleDatabaseContext ctx = new SampleDatabaseContext(connecti onString); &lt;br&gt; System.Data.Linq.Table&amp;lt;UsersGe tResult&amp;gt; users = ctx.UsersGet();
  </summary>
  </entry>
  <entry>
  <author>
  <name>Adam K.</name>
  <email>akoby...@nospam.op.pl</email>
  </author>
  <updated>2009-07-05T11:40:55Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/9999282598211eba?show_docid=9999282598211eba</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/905e6dfbc5c8d463/9999282598211eba?show_docid=9999282598211eba"/>
  <title type="text">LINQ: Count records</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; I have stored procedure that returns some records from table, i.e. like &lt;br&gt; this: &lt;br&gt; CREATE PROCEDURE dbo.UsersGet AS &lt;br&gt; BEGIN &lt;br&gt; SELECT * FROM Users; &lt;br&gt; END &lt;br&gt; In c# i can acces to this stored procedure by code: &lt;br&gt; SampleDatabaseContext ctx = new SampleDatabaseContext(connecti onString); &lt;br&gt; foreach(UsersGetResult usr in ctx.UsersGet()) {
  </summary>
  </entry>
  <entry>
  <author>
  <name>shaikh aamirali</name>
  <email>shaikh.aamiral...@gmail.com</email>
  </author>
  <updated>2009-07-05T07:12:31Z</updated>
  <id>http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/60364b8f5b62bff0/031182dc4ef118f9?show_docid=031182dc4ef118f9</id>
  <link href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/60364b8f5b62bff0/031182dc4ef118f9?show_docid=031182dc4ef118f9"/>
  <title type="text">THE WORLD OF INTERNET JOB IS OFFEREING U TO EARN $1000 IN ONE MINUTE</title>
  <summary type="html" xml:space="preserve">
  THE WORLD OF INTERNET JOB IS OFFEREING U TO EARN $1000 IN ONE MINUTE &lt;br&gt; PLEASE HURRY UP FOR MORE DETAILS LOG ON TO &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://eram.megalinesolutions.com/&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
</feed>
