Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i facing problem to inserting record in Column Family..

C#
using (var ctx = new CassandraContext(host, port, keySpace))
            {
                try
                {
                    var employeeRecord = new CassandraEntity<List<Column>>()
                    .SetColumnFamily(columnFamily)
                    .SetKey(Convert.ToInt32(txtId.Text))
                    .SetData(empRecord);

                    ctx.ColumnList.InsertOnSubmit(employeeRecord);
                    ctx.SubmitChanges();
                }
}


How to solve problem to insert reocrd in database.......
Posted
Updated 28-Oct-13 2:13am
v2
Comments
Karthik Harve 28-Oct-13 8:12am    
What is a error message you are getting ?
Mayank Engineer 28-Oct-13 8:42am    
Not enough bytes to read value of components 0
[no name] 28-Oct-13 8:17am    
Which database you are using..??
Mayank Engineer 28-Oct-13 8:36am    
cassandra

1 solution

Have a look at this one

basic-crud-operation-on-cassandra[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900