public TRANSACAO(CONTA conta, CATEGORIA categoria, string nome, DateTime data, decimal valor, string owner) : this() { CONTA = conta; CATEGORIA = categoria; Nome = nome; Data = data; Valor = valor; Owner = owner; JOURNAL = new JOURNAL(this, owner); }
private void detach_JOURNALSDEBITO(JOURNAL entity) { this.SendPropertyChanging(); entity.CONTADEBITO = null; }
private void attach_JOURNALSCREDITO(JOURNAL entity) { this.SendPropertyChanging(); entity.CONTACREDITO = this; }
partial void DeleteJOURNAL(JOURNAL instance);
partial void UpdateJOURNAL(JOURNAL instance);
partial void InsertJOURNAL(JOURNAL instance);
private void detach_JOURNALS(JOURNAL entity) { this.SendPropertyChanging(); entity.CATEGORIA = null; }
public JsonResult JsonCreate(JournalModel model) { UpdateJournalModelProperties(model, ModelState); if (ModelState.IsValid) { JOURNAL journal = new JOURNAL(model, User.Identity.Name); journalRepository.InsertOnSubmit(journal); journalRepository.Save(); return Json(new { success = true }); } return Json(new { errors = GetErrorsFromModelState() }); }
public TRANSFERENCIA(JOURNAL journal, TRANSACAO debito, TRANSACAO credito, string owner) : this() { }