Exemplo n.º 1
0
        public bool Insert_Posted(int id)
        {
            bool result = false;

            try
            {
                mmoDataContext db   = new mmoDataContext();
                Posting        post = new Posting
                {
                    ImgId    = id,
                    SourceId = 6
                };
                db.Postings.InsertOnSubmit(post);
                db.SubmitChanges();
                result = true;
            }
            catch (Exception ex) { }
            return(result);
        }
Exemplo n.º 2
0
 private void detach_Postings(Posting entity)
 {
     this.SendPropertyChanging();
     entity.Source = null;
 }
Exemplo n.º 3
0
 private void attach_Postings(Posting entity)
 {
     this.SendPropertyChanging();
     entity.Source = this;
 }
Exemplo n.º 4
0
 partial void DeletePosting(Posting instance);
Exemplo n.º 5
0
 partial void UpdatePosting(Posting instance);
Exemplo n.º 6
0
 partial void InsertPosting(Posting instance);
Exemplo n.º 7
0
 private void detach_Postings(Posting entity)
 {
     this.SendPropertyChanging();
     entity.Pinterest = null;
 }
Exemplo n.º 8
0
 private void attach_Postings(Posting entity)
 {
     this.SendPropertyChanging();
     entity.Pinterest = this;
 }