Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.06 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Adding entity frame model to a project
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Collections.ObjectModel;
  7. using System.Data;
  8. using System.Data.SqlClient;
  9. using System.Data.Common;
  10.  
  11. namespace Kiersted.Keps.BusinessObjects
  12. {
  13.     [Table("Search", Schema = "mySchema")]
  14.     public class BatchSearch : KepsBusinessObject, IKepsBusinessObject
  15.     {
  16.  
  17.         public BatchSearch() { }
  18.  
  19.         public BatchSearch(DateTime created)
  20.         {
  21.             this.Created = created;
  22.         }
  23.  
  24.         #region Data Properties
  25.  
  26.         [Key]
  27.         [Column("BatchSearchID")]
  28.         public int SearchId{ get; set; }
  29.  
  30.         [Column("uidQueueMaster")]
  31.         public Nullable<int> uidQueueMaster { get; set; }
  32.  
  33.         [Column("DateCreated")]
  34.         public DateTime Created { get; set; }
  35.  
  36.         [Column("DateCompleted")]
  37.         public Nullable<DateTime> Completed{ get; set; }
  38.  
  39.         public string QueryTerms { get; set; }
  40.  
  41.         [NotMapped]
  42.         public string LocalProperty { get; set; }
  43.     }
  44. }