# ScyllaDB CodeFirst?

**URL:** <https://forum.scylladb.com/t/scylladb-codefirst/262>\
**Category:** ScyllaDB\
**Tags:** data-model\
**Created:** [January 18, 2023, 1:22pm UTC](https://forum.scylladb.com/t/scylladb-codefirst/262 "2023-01-18T13:22:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruce\_Haset\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/bruce_haset_lee/32/108_2.png) [@Bruce\_Haset\_Lee](https://forum.scylladb.com/u/Bruce_Haset_Lee)\
**Post date:** [January 18, 2023, 1:22pm UTC](https://forum.scylladb.com/t/scylladb-codefirst/262/1 "2023-01-18T13:22:29Z")

</div>

Hi, I’m .NET dev that is trying out ScyllaDB. My previous experience was with MSSQL and EF. I used code first and DbMigrations for updating my Database from code.

While testing/playing around with ScyllaDB I used to create new tables with cqlsh like:  
CREATE TABLE heartrate\_v1 (  
pet\_chip\_id uuid,  
time timestamp,  
heart\_rate int,  
PRIMARY KEY (pet\_chip\_id)  
);

which is database first approach.

But is there anyway/tool. To work with ScyllaDB as CodeFirst. So when I make new object in C# code, it make new table in Keyspace, and if I add new prop to that object, it add new column to existing table?

---

<div class="post-metadata">

**Author:** ![benipeled](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/benipeled/32/30_2.png) [@benipeled](https://forum.scylladb.com/u/benipeled)\
**Post date:** [January 25, 2023, 11:32am UTC](https://forum.scylladb.com/t/scylladb-codefirst/262/2 "2023-01-25T11:32:13Z")

</div>

Hi @Bruce_Haset_Lee,  
I’m not familiar with CodeFirst but if you looking for ORM for C# you can try datastax C# driver [1] which ScyllaDB is fully compatible with,

[1] [GitHub - datastax/csharp-driver: DataStax C# Driver for Apache Cassandra](https://github.com/datastax/csharp-driver)
