<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Adventures in .NET!</title>
  <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/" />
  <link rel="self" href="http://www.hardypickert.de/blog/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2009-06-12T15:03:07.6572691+02:00</updated>
  <author>
    <name>Hardy Pickert</name>
  </author>
  <subtitle>newtelligence powered</subtitle>
  <id>http://www.hardypickert.de/blog/</id>
  <generator uri="http://dasblog.info/" version="2.3.9074.18820">DasBlog</generator>
  <entry>
    <title>SQL Metal Open Source User Interface als GUI für SQL-Metal</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2009/06/12/SQLMetalOpenSourceUserInterfaceAlsGUIF%c3%bcrSQLMetal.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,3312b938-0dff-4d0c-b8fe-dc4b6e872247.aspx</id>
    <published>2009-06-12T14:50:05.7966687+02:00</published>
    <updated>2009-06-12T15:03:07.6572691+02:00</updated>
    <category term="NET/LINQ" label="NET/LINQ" scheme="http://www.hardypickert.de/blog/CategoryView,category,NETLINQ.aspx" />
    <category term="Visual Studio .NET" label="Visual Studio .NET" scheme="http://www.hardypickert.de/blog/CategoryView,category,VisualStudioNET.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Der Designer der Linq2SQL-Classes unterstützt bekanntlich keine SQL Server Compact
–Datenbanken.Das Fummeln mit SQLMetal ist auch nicht Jedermanns Sache.Versucht man
in den Linq2SQL-Designer Tabellen eine SDF-Datei zu ziehen , bekommt man folgende
Fehlermeldung:
</p>
        <p>
          <a href="http://www.hardypickert.de/blog/content/binary/WindowsLiveWriter/SQLMetalOpenSourceUserInterface_D08D/test_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="test" border="0" alt="test" src="http://www.hardypickert.de/blog/content/binary/WindowsLiveWriter/SQLMetalOpenSourceUserInterface_D08D/test_thumb.png" width="420" height="177" />
          </a>
        </p>
        <p>
Abhilfe schafft hier das Projekt “<a href="http://www.codeplex.com/sqlmetalosui" target="_blank">SQL
Metal Open Source User Interface</a>”, welches auf <a href="http://www.codeplex.com/" target="_blank">Codeplex</a> gehostet
wird und eine GUI für SQL-Metal  bietet.Die Anwendung  kann in VS2008 als
Tool eingebunden werden  und generiert dann die *.dbml-Datei aus der SQL Server
Compact-Datenbank.
</p>
        <p>
 <a href="http://www.hardypickert.de/blog/content/binary/WindowsLiveWriter/SQLMetalOpenSourceUserInterface_D08D/bereich_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="bereich" border="0" alt="bereich" src="http://www.hardypickert.de/blog/content/binary/WindowsLiveWriter/SQLMetalOpenSourceUserInterface_D08D/bereich_thumb.png" width="558" height="373" /></a></p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=3312b938-0dff-4d0c-b8fe-dc4b6e872247" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Entity Framework Learning Guide</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2009/03/15/EntityFrameworkLearningGuide.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,da94b670-a0f7-4180-a4ac-b965d65584ac.aspx</id>
    <published>2009-03-15T21:33:15.2340378+01:00</published>
    <updated>2009-03-15T21:33:15.2340378+01:00</updated>
    <category term="NET/LINQ" label="NET/LINQ" scheme="http://www.hardypickert.de/blog/CategoryView,category,NETLINQ.aspx" />
    <category term="NET/OR-Mapping" label="NET/OR-Mapping" scheme="http://www.hardypickert.de/blog/CategoryView,category,NETORMapping.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Zeeshan Hirani hat in seinem <a href="http://weblogs.asp.net/zeeshanhirani/default.aspx" target="_blank">Blog</a> ein
komplettes <a href="http://weblogs.asp.net/zeeshanhirani/archive/2008/12/18/my-christmas-present-to-the-entity-framework-community.aspx" target="_blank">ebook</a> mit
Sourcen zur Verfügung gestellt.Es beinhaltet ein komplettes Tutorial für
das Entity Framework sowie den Sourcecode dazu.
</p>
        <p>
          <a href="http://cid-245ed00edb4c374e.skydrive.live.com/self.aspx/Public/entity%20framework%20learning%20guide.pdf" target="_blank">Entity
Framework Learning Guide</a> (PDF)
</p>
        <p>
          <a href="http://cid-245ed00edb4c374e.skydrive.live.com/self.aspx/Public/completeproject.zip" target="_blank">Sourcecode
inkl. DBs</a> (Zip)
</p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=da94b670-a0f7-4180-a4ac-b965d65584ac" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio 2008- Keine DB-Projekttemplates f&amp;uuml;r den SQL Server 2008</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2009/02/13/VisualStudio2008KeineDBProjekttemplatesFuumlrDenSQLServer2008.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,ba1a8e19-1bd0-40aa-89b6-5c9ea8c8a815.aspx</id>
    <published>2009-02-13T19:33:52.8221153+01:00</published>
    <updated>2009-02-13T19:33:52.8221153+01:00</updated>
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Möchte man mit VS2008 Datenbankprojekte für den SQL Server 2008 anlegen, dann fehlen
die Projekttemplates dafür im Visual Studio.
</p>
        <p>
Abhilfe schafft die <a href="http://www.microsoft.com/Downloads/details.aspx?familyid=BB3AD767-5F69-4DB9-B1C9-8F55759846ED&amp;displaylang=en" target="_blank">Visual
Studio Team System 2008 Database Edition GDR</a> .Nach der Installation sind die Templates
dann vorhanden.
</p>
        <p>
 
</p>
        <p>
          <a href="http://hardypickert.de/blog/content/binary/WindowsLiveWriter/VisualStudio2008KeineDBProjekttemplatesf_1130E/Unbenannt_2.jpg">
            <img title="Unbenannt" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="435" alt="Unbenannt" src="http://hardypickert.de/blog/content/binary/WindowsLiveWriter/VisualStudio2008KeineDBProjekttemplatesf_1130E/Unbenannt_thumb.jpg" width="644" border="0" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=ba1a8e19-1bd0-40aa-89b6-5c9ea8c8a815" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Windows Server 2008 64x und SQL Compact</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2009/02/04/WindowsServer200864xUndSQLCompact.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,ec6aab0e-c2c8-45a6-a9aa-5b7591f7bf47.aspx</id>
    <published>2009-02-04T16:40:22.7298718+01:00</published>
    <updated>2009-02-04T16:40:22.7298718+01:00</updated>
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Beim Kompilieren per VS 2008 auf einem Windows Server 2008  64x hatte ich das
Problem, dass die Anwendung sich nicht kompilieren ließ und immer einen Fehler geworfen
hat( Unable to load DLL 'sqlceme35.dll”).
</p>
        <p>
Erst das SP1 vom SQL-Server Compact unterstützt das Arbeiten aus 64x-Bit-Systemen.
</p>
        <p>
Download:
</p>
        <p>
          <a title="http://www.microsoft.com/downloads/details.aspx?FamilyId=DC614AEE-7E1C-4881-9C32-3A6CE53384D9&amp;displaylang=en#filelist" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=DC614AEE-7E1C-4881-9C32-3A6CE53384D9&amp;displaylang=en#filelist">http://www.microsoft.com/downloads/details.aspx?FamilyId=DC614AEE-7E1C-4881-9C32-3A6CE53384D9&amp;displaylang=en#filelist</a>
        </p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=ec6aab0e-c2c8-45a6-a9aa-5b7591f7bf47" />
      </div>
    </content>
  </entry>
  <entry>
    <title>LENOVO Thinkpad SL 500</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2009/02/01/LENOVOThinkpadSL500.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,77fee493-a0c4-4fee-96bb-2b82b3172003.aspx</id>
    <published>2009-02-01T21:07:04.376473+01:00</published>
    <updated>2009-02-02T12:26:15.4453069+01:00</updated>
    <category term="Sonstiges" label="Sonstiges" scheme="http://www.hardypickert.de/blog/CategoryView,category,Sonstiges.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
In der letzten Woche habe ich mir ein neues Notebook gekauft, welches mein altes Modell
von Samsung(X30 1500) ersetzen soll. Bei meinem alten Notebook haben mich die mangelnde
Geschwindigkeit (1500 MHz)  sowie der kleine RAM(1GB) gestört. Die HDD wurde
mir auch etwas zu klein (80GB).
</p>
        <p>
Nach langer Überlegung habe ich zu Lenovo gegriffen, da es alle Features, die ich
mir wünschte, besaß und das Preis-Leistungsverhältnis auch stimmte.Im Vorfeld hatte
ich natürlich schon das Web abgegrast und viel gegenteilige Meinungen gelesen, was
die SL-Reihe von Lenovo betrifft.Da ich bewusst ein mattes Display gesucht habe, blieben
auch nicht so viele Modelle in meinen Auswahlpool.
</p>
        <p>
Insgesamt bin ich eigentlich zufrieden, was die Qualität und die Performance angeht.
Umgewöhnen musste ich mich bei dem sehr kleinen Touchpad , da dieses bei meinem Samsung
doch etwas größer ist.Aber das ist , so denke ich, eine Frage der Gewohnheit.Das Tippen
auf der Tastatur geht eigentlich auch sehr geschmeidig von der Hand, diese ist beim
Lenovo sogar etwas besser als bei Samsung.Den Lüfter höre ich kaum, er ist wirklich
sehr leise. Zum Akku kann ich leider noch nichts sagen. Angegeben sind ca.  3h
Laufzeit. 
</p>
        <p>
Die Lenovo Treiber lassen sich auch mit dem mitgelieferten “Lenovo-System Update”
ganz leicht einspielen.
</p>
        <p>
Hier kurz die Eckdaten: 
</p>
        <ul>
          <li>
Prozessor:  Intel Core™2 Duo P8600 2x 2,40 GHz 
</li>
          <li>
RAM :         4GB DDR2 
</li>
          <li>
HDD:          250GB 5400rpm 
</li>
          <li>
Display:     15,4" 1680 x 1050 Pixel (WSXGA+ TFT) <strong>matt</strong></li>
          <li>
Grafik:       NVIDIA GeForce 9300M GS 256MB 
</li>
          <li>
OS:           Windows Vista Business
(ersetzt durch Windows Server 2008 64Bit) 
</li>
        </ul>
        <p>
 
</p>
        <p>
Der einzige Kritikpunkt ist der Deckel des Gehäuses. Dieser ist in Klavierlack gehalten
und somit sieht man jeden kleinsten Fingerabdruck. Hier empfiehlt es sich , immer
ein <em>Microfasertuch</em> dabei zu haben ;-(
</p>
        <p>
          <strong>Fazit:</strong>
        </p>
        <p>
Ein gutes Notebook in der Preisklasse bis zu 1000 €.Ich besitze mit dem SL500 endlich
wieder ein Notebook, welches auf dem aktuellsten Stand der Technik ist und auch im
mobilen Arbeiten Spaß macht.
</p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=77fee493-a0c4-4fee-96bb-2b82b3172003" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Summer of NHibernate-Screencasts</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2008/07/14/SummerOfNHibernateScreencasts.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,ba36667b-9200-417c-8d9e-1445cbd09bac.aspx</id>
    <published>2008-07-14T18:39:27.3001279+02:00</published>
    <updated>2008-07-14T18:39:58.1739423+02:00</updated>
    <category term="NET/OR-Mapping" label="NET/OR-Mapping" scheme="http://www.hardypickert.de/blog/CategoryView,category,NETORMapping.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Die folgenden Screencasts hat "Steve" von der Firma <a href="http://www.microdesk.com/" target="_blank">Autodesk</a> zum
"Public Viewing"  ;-) bereitgestellt.
</p>
        <p>
          <a href="http://unhandled-exceptions.com/blog/index.php/2008/06/18/summer-of-nhibernate-session-01-setup-and-basic-usage-pattern-screencast-is-available/">Session
01: Setup and Basic Usage Pattern</a>
        </p>
        <p>
          <a href="http://unhandled-exceptions.com/blog/index.php/2008/06/19/summer-of-nhibernate-session-02-exploring-query-methods-and-syntaxes-screencast-is-available/">Session
02: Exploring Query Methods and Syntaxes</a>
          <br />
          <a href="http://unhandled-exceptions.com/blog/index.php/2008/06/26/summer-of-nhibernate-session-02a-exploring-query-methods-and-syntaxes-cont-screencast-is-available/">Session
02a: Exploring Query Methods and Syntaxes (con't)</a>
          <br />
          <a href="http://unhandled-exceptions.com/blog/index.php/2008/07/07/summer-of-nhibernate-session-03-exploring-insert-update-and-delete-semantics-screencast-is-now-available/">Session
03: Exploring INSERT, UPDATE, and DELETE Semantics</a>
          <br />
          <a href="http://unhandled-exceptions.com/blog/index.php/2008/07/12/summer-of-nhibernate-session-04-screencast-is-available/">Session
04: Exploring Transactions and Concurrency</a>
        </p>
        <p>
Die Screencasts sind auf <a title="http://www.summerofnhibernate.com/" href="http://www.summerofnhibernate.com/">http://www.summerofnhibernate.com/</a> zu
finden.
</p>
        <p>
Prädikat: besonders empfehlenswert.
</p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=ba36667b-9200-417c-8d9e-1445cbd09bac" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Sharepoint-Links f&amp;uuml;r Entwickler</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2008/06/25/SharepointLinksFuumlrEntwickler.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,66181bdb-d2f0-471e-964b-a791a925783c.aspx</id>
    <published>2008-06-25T13:45:53.706+02:00</published>
    <updated>2008-06-26T09:45:32.8648409+02:00</updated>
    <category term="SharePoint" label="SharePoint" scheme="http://www.hardypickert.de/blog/CategoryView,category,SharePoint.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Wie jeder weiß, sind SharePoint-Entwickler momentan gefragte Leute. Da ich mich in
die Materie gerade einarbeite,  habe ich ein paar Ressourcen für den Einstieg
in die SharePoint-Technologie gesammelt.
</p>
        <p>
1. <a href="http://www.microsoft.com/click/sharepointdeveloper/">MS Sharepoint Beginner
Site</a> - MS Entwicklerportal für SPPS-Neulinge
</p>
        <p>
2. <a href="http://blogs.msdn.com/sharepoint/" target="_blank">MS Sharepoint Blog</a> -
Microsoft Sharepoint Team
</p>
        <p>
3. <a href="http://www.mysharepoint.de/" target="_blank">SharePointCommunity</a> -
deutschsprachige Community in Sachen Sharepoint (mit Forum und Wiki)
</p>
        <p>
4. <a href="http://michael-seitz.org/sharepoint" target="_blank">Michael Seitz</a> -
deutschsprachige Linksammlung zu MS SharePoint
</p>
        <p>
5. <a href="http://www.amazon.de/s/ref=nb_ss_w?__mk_de_DE=%C5M%C5Z%D5%D1&amp;url=search-alias%3Daps&amp;field-keywords=sharepoint+portal+server" target="_blank">SharePoint
- Bücher auf amazon</a></p>
        <p>
6. <a href="http://msevents.microsoft.com/CUI/SearchDisplay.aspx?culture=de-DE&amp;evtTypHero=3#culture=de-DE;sortKey=;sortOrder=;pageEvent=false;hdnInitialCount=;kwdAny=sharepoint;eventType=3;searchcontrol=yes;s=1" target="_blank">SharePoint
-Webcasts</a></p>
        <p>
7. <a href="http://blogs.mysharepoint.de/mgreth/default.aspx" target="_blank">Blog
von Michael Greth</a>- Linksammlung in Sachen SharePoint
</p>
        <p>
Die Liste werde ich entsprechend aktualisieren.
</p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=66181bdb-d2f0-471e-964b-a791a925783c" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Source Code Outliner f&amp;uuml;r Visual Studio</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2008/05/31/SourceCodeOutlinerFuumlrVisualStudio.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,1f998ba9-816d-467c-9e56-3dd5d749434c.aspx</id>
    <published>2008-05-31T13:25:32.9451092+02:00</published>
    <updated>2008-05-31T13:27:55.6896276+02:00</updated>
    <category term="Visual Studio .NET" label="Visual Studio .NET" scheme="http://www.hardypickert.de/blog/CategoryView,category,VisualStudioNET.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
ein kleines AddIn für VS , mit dem man per Treeview durch die eigenen Klassenmember
bzw. Klassenmethoden navigieren kann.
</p>
        <p>
Nach der Installation findet man das Fenster unter Ansicht/weitere Fenster.
</p>
        <p>
          <a href="http://hardypickert.de/blog/content/binary/WindowsLiveWriter/SourceCodeOutlinerfrVisualStudio_BCAC/Aufzeichnen.jpg" target="_blank">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="716" alt="Aufzeichnen" src="http://hardypickert.de/blog/content/binary/WindowsLiveWriter/SourceCodeOutlinerfrVisualStudio_BCAC/Aufzeichnen_thumb.jpg" width="316" border="0" />
          </a>
        </p>
        <p>
 
</p>
        <p>
Der Download des AddIns findet man  natürlich auf <a href="http://www.codeplex.com/SourceCodeOutliner" target="_blank">codeplex</a>.
</p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=1f998ba9-816d-467c-9e56-3dd5d749434c" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Super Vista und Skype</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2008/05/24/SuperVistaUndSkype.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,5a9003ad-d53f-4f01-816b-0b4f5cdb0ddb.aspx</id>
    <published>2008-05-24T10:06:45.4562516+02:00</published>
    <updated>2008-05-24T10:06:59.7994508+02:00</updated>
    <category term="Vista" label="Vista" scheme="http://www.hardypickert.de/blog/CategoryView,category,Vista.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Gestern habe ich Wndows Server 2008 nach der <a href="http://www.karsan.de/WINDOWSWindows2008AlsSuperVista.aspx" target="_blank">Anleitung</a> von <a href="http://www.karsan.de/default.aspx" target="_blank">Karsten</a> als
Workstation installiert und konfiguriert.
</p>
        <p>
Installiert man nun die aktuelle Version von Skype, wird das Programm zwar installiert,
aber der Start von Skype nach dem Login schlug fehl.
</p>
        <p>
Abhilfe schafft hier eine Vorgängerversion von Skype, welche <a href="http://filehippo.com/download_skype/2473/" target="_blank">hier</a> zu
finden ist.
</p>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=5a9003ad-d53f-4f01-816b-0b4f5cdb0ddb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>ObjectDataSource und DataObjectAttribute</title>
    <link rel="alternate" type="text/html" href="http://www.hardypickert.de/blog/2008/05/07/ObjectDataSourceUndDataObjectAttribute.aspx" />
    <id>http://www.hardypickert.de/blog/PermaLink,guid,6ccdff3a-c843-4dbc-906c-d83d3dc27487.aspx</id>
    <published>2008-05-07T12:38:34.407+02:00</published>
    <updated>2008-05-07T13:25:26.9653998+02:00</updated>
    <category term="NET/ASP.NET" label="NET/ASP.NET" scheme="http://www.hardypickert.de/blog/CategoryView,category,NETASPNET.aspx" />
    <category term="SQLServer" label="SQLServer" scheme="http://www.hardypickert.de/blog/CategoryView,category,SQLServer.aspx" />
    <author>
      <name>Hardy Pickert</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Wer in ASP.NET viel mit der ObjectDataSource arbeitet, kann von Attributen eigentlich
nur profitieren.Ich benutze die Attribute in meinen Business-klassen, um mit der ObjectDataSource
auf meine CRUD-Methoden zuzugreifen.
</p>
        <p>
Ein Beispiel:
</p>
        <div style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: courier new">
          <pre style="MARGIN: 0px">
            <span style="BACKGROUND: black; COLOR: white">[</span>
            <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectAttribute</span>
            <span style="BACKGROUND: black; COLOR: white">()]</span>
          </pre>
          <pre style="MARGIN: 0px">
            <span style="BACKGROUND: black; COLOR: white">   </span>
            <span style="BACKGROUND: black; COLOR: #ff8040">public</span>
            <span style="BACKGROUND: black; COLOR: white">
            </span>
            <span style="BACKGROUND: black; COLOR: #ff8040">class</span>
            <span style="BACKGROUND: black; COLOR: white">
            </span>
            <span style="BACKGROUND: black; COLOR: #ffff9b">CustomerManager()</span>
          </pre>
          <pre style="MARGIN: 0px">
            <span style="BACKGROUND: black; COLOR: #ffff9b">
            </span> </pre>
          <pre style="MARGIN: 0px">
            <a href="http://msdn.microsoft.com/de-de/library/system.componentmodel.dataobjectattribute_members(en-us).aspx" target="_blank">DataObjectAttribute</a> identifiziert
einen Typ als für die Bindung an die ObjectDataSource geeignetes Objekt</pre>
          <pre style="MARGIN: 0px"> </pre>
          <pre style="MARGIN: 0px">Als nächstes werden die CRUD-Methoden mit den Attribut DataObjectMethod ausgewiesen.</pre>
          <pre style="MARGIN: 0px">Hier die SELECT-Methode:</pre>
          <pre style="MARGIN: 0px"> </pre>
          <div style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: courier new">
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">[</span>
              <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectMethod</span>
              <span style="BACKGROUND: black; COLOR: white">(</span>
              <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectMethodType</span>
              <span style="BACKGROUND: black; COLOR: aqua">.</span>
              <span style="BACKGROUND: black; COLOR: white">Select, </span>
              <span style="BACKGROUND: black; COLOR: #ff8040">true</span>
              <span style="BACKGROUND: black; COLOR: white">)]</span>
            </pre>
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">       </span>
              <span style="BACKGROUND: black; COLOR: #ff8040">public</span>
              <span style="BACKGROUND: black; COLOR: white">
              </span>
              <span style="BACKGROUND: black; COLOR: #ff8040">static</span>
              <span style="BACKGROUND: black; COLOR: white">
              </span>
              <span style="BACKGROUND: black; COLOR: #ffff9b">List</span>
              <span style="BACKGROUND: black; COLOR: aqua">&lt;</span>
              <span style="BACKGROUND: black; COLOR: #ffff9b">Customer</span>
              <span style="BACKGROUND: black; COLOR: aqua">&gt;</span>
              <span style="BACKGROUND: black; COLOR: white"> GetList()</span>
            </pre>
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">      
{</span>
            </pre>
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">           </span>
              <span style="BACKGROUND: black; COLOR: #ff8040">return</span>
              <span style="BACKGROUND: black; COLOR: white">
              </span>
              <span style="BACKGROUND: black; COLOR: #ffff9b">CustomerDB</span>
              <span style="BACKGROUND: black; COLOR: aqua">.</span>
              <span style="BACKGROUND: black; COLOR: white">GetList();</span>
            </pre>
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">      
}</span>
            </pre>
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">
              </span> </pre>
            <pre style="MARGIN: 0px">
              <span style="BACKGROUND: black; COLOR: white">
              </span> </pre>
            <pre style="MARGIN: 0px">
              <a href="http://msdn.microsoft.com/de-de/library/system.componentmodel.dataobjectmethodattribute_members(en-us).aspx" target="_blank">DataObjectMethod</a> identifiziert
eine verfügbare Methode der ObjectDataSource, wobei DataObjectMethodType </pre>
            <pre style="MARGIN: 0px">die Methode auswählt . In unserem Fall die SELECT-Methode.Das true gibt an, ob die Methode in der Object-</pre>
            <pre style="MARGIN: 0px">DataSource als Standard für das SELECT gesetzt wird.</pre>
            <pre style="MARGIN: 0px"> </pre>
            <pre style="MARGIN: 0px"> </pre>
            <pre style="MARGIN: 0px">Äquivalent werden jetzt die UPDATE-bzw. DELETE-Methode der ObjectDataSource vorgegeben.</pre>
            <pre style="MARGIN: 0px"> </pre>
            <pre style="MARGIN: 0px">Update:</pre>
            <pre style="MARGIN: 0px"> </pre>
            <div style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: courier new">
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">[</span>
                <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectMethod</span>
                <span style="BACKGROUND: black; COLOR: white">(</span>
                <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectMethodType</span>
                <span style="BACKGROUND: black; COLOR: aqua">.</span>
                <span style="BACKGROUND: black; COLOR: white">Update, </span>
                <span style="BACKGROUND: black; COLOR: #ff8040">true</span>
                <span style="BACKGROUND: black; COLOR: white">)]</span>
              </pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">        </span>
                <span style="BACKGROUND: black; COLOR: #ff8040">public</span>
                <span style="BACKGROUND: black; COLOR: white">
                </span>
                <span style="BACKGROUND: black; COLOR: #ff8040">static</span>
                <span style="BACKGROUND: black; COLOR: white">
                </span>
                <span style="BACKGROUND: black; COLOR: #ff8040">long</span>
                <span style="BACKGROUND: black; COLOR: white"> Save(</span>
                <span style="BACKGROUND: black; COLOR: #ffff9b">Customer </span>
                <span style="BACKGROUND: black; COLOR: white">myCustomer)</span>
              </pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">       
{</span>
              </pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">            </span>
                <span style="BACKGROUND: black; COLOR: #ff8040">return</span>
                <span style="BACKGROUND: black; COLOR: white">
                </span>
                <span style="BACKGROUND: black; COLOR: #ffff9b">CustomerDB</span>
                <span style="BACKGROUND: black; COLOR: aqua">.</span>
                <span style="BACKGROUND: black; COLOR: white">Save(myCustomer);</span>
              </pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">       
}</span>
              </pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">
                </span> </pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">
                </span> </pre>
              <pre style="MARGIN: 0px">Delete:</pre>
              <pre style="MARGIN: 0px">
                <span style="BACKGROUND: black; COLOR: white">
                </span> </pre>
              <div style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: courier new">
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">[</span>
                  <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectMethod</span>
                  <span style="BACKGROUND: black; COLOR: white">(</span>
                  <span style="BACKGROUND: black; COLOR: #ffff9b">DataObjectMethodType</span>
                  <span style="BACKGROUND: black; COLOR: aqua">.</span>
                  <span style="BACKGROUND: black; COLOR: white">Delete, </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">true</span>
                  <span style="BACKGROUND: black; COLOR: white">)]</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">       </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">public</span>
                  <span style="BACKGROUND: black; COLOR: white">
                  </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">static</span>
                  <span style="BACKGROUND: black; COLOR: white">
                  </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">bool</span>
                  <span style="BACKGROUND: black; COLOR: white"> Delete(</span>
                  <span style="BACKGROUND: black; COLOR: #ffff9b">Customer </span>
                  <span style="BACKGROUND: black; COLOR: white">myCustomer)</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">      
{</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">           </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">if</span>
                  <span style="BACKGROUND: black; COLOR: white"> (myCustomer </span>
                  <span style="BACKGROUND: black; COLOR: aqua">!=</span>
                  <span style="BACKGROUND: black; COLOR: white">
                  </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">null</span>
                  <span style="BACKGROUND: black; COLOR: white">)</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">               </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">return</span>
                  <span style="BACKGROUND: black; COLOR: white">
                  </span>
                  <span style="BACKGROUND: black; COLOR: #ffff9b">CustomerDB</span>
                  <span style="BACKGROUND: black; COLOR: aqua">.</span>
                  <span style="BACKGROUND: black; COLOR: white">Delete(myCustomer</span>
                  <span style="BACKGROUND: black; COLOR: aqua">.</span>
                  <span style="BACKGROUND: black; COLOR: white">id);</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">           </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">else</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">               </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">return</span>
                  <span style="BACKGROUND: black; COLOR: white">
                  </span>
                  <span style="BACKGROUND: black; COLOR: #ff8040">false</span>
                  <span style="BACKGROUND: black; COLOR: white">;</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">      
}</span>
                </pre>
                <pre style="MARGIN: 0px">
                  <span style="BACKGROUND: black; COLOR: white">
                  </span> </pre>
                <pre style="MARGIN: 0px"> </pre>
                <pre style="MARGIN: 0px">Mit diesen Attributen hat man schnell die CRUD-Defaultmethoden der ObjectDataSource gesetzt. </pre>
              </div>
            </div>
          </div>
        </div>
        <img width="0" height="0" src="http://www.hardypickert.de/blog/aggbug.ashx?id=6ccdff3a-c843-4dbc-906c-d83d3dc27487" />
      </div>
    </content>
  </entry>
</feed>
