Question: Why is this error happening when I save?

Model:

```
public class SingleEmail
    {
        [Key]
        public int MailID{get;set;}
        public string ToAddress{get;set;}
        public string Subject{get;set;}
        public string Body{get;set;}
    }

    public class MyDBContext : DbContext
    {

        public DbSet<SingleEmail> SingleEmail{get;set;}

    }

using (MyDBContext db = new MyDBContext())
{
    SingleEmail m = new SingleEmail();
    m.ToAddress = email.To[0].Address;
    m.Subject = email.Subject;
    m.Body = email.Body;

    db.SingleEmail.Add(m);
    db.SaveChanges();

}
            {

```

> 
> An error occurred while updating the
>  entries. See the inner exception for
>  details.;
> 
> 
> 
> ```
>     Invalid object name 'dbo.SingleEmails'.;
> 
> ```
> 
>

Answer: 
One way to share memory between PHP processes is to install a PHP-bytecode cache like [APC](http://php.net/manual/en/book.apc.php). APC is primarily used for storing the bytecode into an OS managed shared-memory segment, but it also has an API for sharing anything you want between processes (like a local version of memcache).

```
<?php
   $foobar = array('foo', 'bar');
   apc_store('foobar', $foobar);
?>

```

Then elsewhere:

```
<?php
    $foobar = apc_fetch('foobar');
    var_dump($foobar);
?>

```

The big problem with sharing-memory is that it becomes very easy for two processes to step on each other's foot. So shared memory is best for things that don't change too much, like big global arrays.
Edit:  

You are probably using shared memory wrong way.  

Your shared memory itself being such array. So you have to store **separate multilanguage strings** directly in shared memory, not big array with them.  

and then only pull strings, required on particular page.  

that's all. 

In general, to process some data, a program have to "duplicate" it, by storing it in a variable.  

That's what variables are for - to store (or "duplicate") some outside data.  

For example, if you have some user info in your database, to display a username on a web page you have to "duplicate" this data, storing it in PHP variable first.  

And so on. 

You are first who thinks that such approach needs to be changed.