
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 1.06 KB | hits: 13 | expires: Never
Adding entity frame model to a project
using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.Collections.ObjectModel;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
namespace Kiersted.Keps.BusinessObjects
{
[Table("Search", Schema = "mySchema")]
public class BatchSearch : KepsBusinessObject, IKepsBusinessObject
{
public BatchSearch() { }
public BatchSearch(DateTime created)
{
this.Created = created;
}
#region Data Properties
[Key]
[Column("BatchSearchID")]
public int SearchId{ get; set; }
[Column("uidQueueMaster")]
public Nullable<int> uidQueueMaster { get; set; }
[Column("DateCreated")]
public DateTime Created { get; set; }
[Column("DateCompleted")]
public Nullable<DateTime> Completed{ get; set; }
public string QueryTerms { get; set; }
[NotMapped]
public string LocalProperty { get; set; }
}
}