title: Handling C# Nested Classes in Cassandra
body: <p>I have a C# class as like below</p>
  
  <pre><code>public class User
  {
      public string UserId { get; set; }
      public string Name { get; set; }
  
      public List&lt;Address&gt; Address { get; set; }
  }
  
  public class Address
  {
      public string Line1 { get; set; }
  }
  </code></pre>
  
  <p>I created key space and table as below</p>
  
  <pre><code>ISession session;
          IMapper Mapper;
      Table&lt;User&gt; table;
  
      var mapping = MappingConfiguration.Global.Define(
                       new Map&lt;User&gt;()
                      .TableName(typeof(User).Name)
                      .PartitionKey(u =&gt; u.UserId))
  
                      ;
  
          Dictionary&lt;string, string&gt; replication = new Dictionary&lt;string, string&gt;();
  
          replication.Add("class", "SimpleStrategy");
          replication.Add("replication_factor", "3");
          var cluster = Cluster.Builder()
                                         .AddContactPoints("127.0.1")
                                         .WithPort(9042)
                                         .WithLoadBalancingPolicy(new DCAwareRoundRobinPolicy("test"))
                                         .WithReconnectionPolicy(new FixedReconnectionPolicy(400, 5000, 2 * 60000, 60 * 60000))
                                         .Build();
  
  
          session = cluster.Connect();
          session.CreateKeyspaceIfNotExists("demo1", replication);
          session = cluster.Connect("demo1");
  
  
          table = new Table&lt;User&gt;(session, mapping, typeof(User).Name, "demo1");
          table.CreateIfNotExists();
  </code></pre>
  
  <p>I am getting the following error</p>
  
  <blockquote>
    <p>Cassandra.InvalidTypeException: 'Unknown Cassandra target type for CLR
    type Casandra.Address'</p>
  </blockquote>