New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: jaras
C#
using (EntityConnection conn = new EntityConnection("name=PayrollEntities"))
{
    conn.Open();
 
    // Entity SQL
    string sQueryString = "SELECT VALUE e FROM PayrollEntities.Employees AS e";
 
    using (EntityCommand comm = new EntityCommand(sQueryString, conn))
    {
        EntityDataReader reader = comm.ExecuteReader(CommandBehavior.SequentialAccess);
by jaras   May 18, 2010 @ 1:01pm
Tags:
17 Views
no comments
 
C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
 
namespace Testsheet
{
    class Program
    {
        static void Main(string[] args)
by jaras   April 13, 2010 @ 12:56pm
Tags:
29 Views
no comments
 
C#
using System;
using System.Collections;
using System.Collections.Generic;
 
namespace Testsheet
{
    class Program
    {
        static void Main(string[] args)
        {
by jaras   April 13, 2010 @ 12:42pm
Tags:
26 Views
no comments
 
C#
using System;
using System.Collections.Generic;
 
namespace ConsoleTestProject
{
    class Program
    {
        static void Main(string[] args)
        {
            AddAll addAll = new AddAll();
by jaras   April 13, 2010 @ 11:34am
Tags:
19 Views
no comments
 
C#
[TestClass]
public class HusTest
{
    [TestMethod]
    public void Vurdering_retunererProduktet_med1Toilet()
    {
        Hus hus = new Hus { Areal = 140, AntalToiletter = 1, Pris = 20000 };
        double result = hus.Vurdering();
        Assert.AreEqual(2800000, result);
    }
by jaras   April 06, 2010 @ 4:30am
Tags:
27 Views
no comments
 
C#
using System;
 
namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            Circle circle = new Circle();
            circle.Radius = 5;
by jaras   March 29, 2010 @ 2:18pm
Tags:
25 Views
no comments
 
C#
public class SimpleStack<T>
{
    private class Node<V>
    {
        public Node<V> Next;
        public V Item;
    }
 
    private Node<T> head;
by jaras   March 09, 2010 @ 9:22am
Tags:
21 Views
no comments
 
C#
static void Main(string[] args)
        {
            RandomDateGenerator generator = new RandomDateGenerator(new Random());
            List<DateTime> RandomDates = new List<DateTime>();
        
            for (int i = 0; i < 100; i++)
            {
                RandomDates.Add(generator.RandomDay());
            }
by jaras   July 16, 2009 @ 3:39pm
Tags:
14 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate