title: Using Resources in C# as a database
body: <p>I am trying to implement the Data Access Object (DAO) Pattern in C#
  Have 3 classes</p>
  
  <blockquote>
    <p><strong>1.School    with attributes</strong></p>
  </blockquote>
  
  <pre><code>    - String name
      - List int optionCodes
      - int contactNo
      - String webSite
      - String address
  </code></pre>
  
  <blockquote>
    <p><strong>2.SchoolDAO interface    with methods</strong></p>
  </blockquote>
  
  <pre><code>  public List&lt;School&gt; getAllSchools;
    public School getSchool(String _name); 
    public void updateSchool(School _school);
    public void deleteSchool(School _school);
  </code></pre>
  
  <ol start="3">
  <li>School DAOImpl</li>
  </ol>
  
  <p>This is where I want to access an XML file SchoolList as my persistent data</p>
  
  <p>I would like to use Properties.Resources where it is stored but am not sure how to implement the following CRUD methods in C#</p>
  
  <pre><code>class DAOImpl
  {
      String dataBase = SchoolDataAccessObjectPattern.Properties.Resources.SchoolContactDetails;
      List&lt;School&gt; schoolList= new List&lt;School&gt;();
  
      public List&lt;School&gt; getAllSchools;
      public School getSchool(String _name);
      public void addSchool(School _school);
      public void updateSchool(School _school);
      public void deleteSchool(School _school);
  
  }
  </code></pre>