Exemplo n.º 1
0
        protected override void CreatePrimaryKey(PrimaryKey primaryKey)
        {
            var connection = SqlDataStore.GetConnection();

            using (var command = connection.CreateCommand())
            {
                var sql = primaryKey.GetCreateSqlQuery();
                OrmDebug.Trace(sql);

                command.CommandText = sql;
                command.ExecuteNonQuery();
            }
        }