public Contato(string nome_, string email_, string telefone_, DateTime dataNascimento_) { Nome = nome_; Email = email_; Telefone = telefone_; DataNascimento = dataNascimento_; _context = new ActiveRecordContext(); }
/// <summary> /// The default factory (Azure Context) /// </summary> /// <returns></returns> protected static Func<IActiveRecordContext> DefaultFactory() { return () => { //TODO: remove connection string hard code var config = CloudStorageAccount.FromConfigurationSetting("DataConnectionString"); var context = new ActiveRecordContext( new TableServiceContextWrapper( new TableServiceContext(config.TableEndpoint.ToString(),config.Credentials))); return context; }; }