Ejemplo n.º 1
0
    public bool presist(SupportDocDTO entity)
    {
        try
        {
            model.supportDoc obj = new supportDoc();
            obj.userName = entity.userName;
            obj.title = entity.title;
            obj.description = entity.description;
            obj.content = new System.Data.Linq.Binary(entity.content);//Array of bytes to Linq.Binary

            ctx.supportDocs.InsertOnSubmit(obj);
            ctx.SubmitChanges();
            return true;
        }
        catch (Exception)
        {
            ctx.Dispose();
            ctx = new ModelDataContext();
            return false;
        }
    }
Ejemplo n.º 2
0
 partial void DeletesupportDoc(supportDoc instance);
Ejemplo n.º 3
0
 partial void InsertsupportDoc(supportDoc instance);
Ejemplo n.º 4
0
 partial void UpdatesupportDoc(supportDoc instance);
Ejemplo n.º 5
0
		private void detach_supportDocs(supportDoc entity)
		{
			this.SendPropertyChanging();
			entity.Account = null;
		}