Is there a way to reorder the records in Realm Studio? - realm-database

I am using a Realm database in an iOS app and utilize Realm Studio (RS) to manage the data. Is there a way to reorder record order in Realm Studio, or delete a record?
Thanks.
Blessings,
—Mark

I don't believe the current version (2.4.1) supports reordering.
Deleting objects in Realm Studio is possible. You can right-click on an object and choose "Delete selected object". You can select multiple objects with shift or command key and delete them all at once too.

Related

Core Data - Changing attributes type

I have a project and I am using core data.
I have some entities, with attributes. When I started the project I choose some atributes and now I want to change their types (Int to String for example). ANd so I did it.
THe thing is, I am getting errors...
I checked the code, I think every thing is ok.
I even deleted the entire entity and made a new one with some name but it doesn't work.
How can I change it with success?
You can use code data migration for this by creating new version..
To change data types you need to create a new version of the database, you can not just simply modifie it because that way your users would have to delete and redownload your app every time you change something.
Here you can read how to do this.
The simulator or device you are running the app on still 'remembers' the old type and data. Simply hold down on the app and press the 'X' to delete it. When you press play in XCode it will reinstall the app with the new data types.

Entity Framework - Update database manually

I am new to entity framework and using EF 6.1.1... using code first approach i have generated the database..
When i run my application from Visual Studio in my local machine..
and update a record from my application.. it immediately reflects in ui immediately..
but if i update the records in database manually.. then the changes are not reflected immediately in ui.. i need to rebuild the solution to and run it again to bring the updated data to ui..
Just need to know if this is how entity framework works?? if yes, is there a way to make the ui to sync with database even for manual updates without rebuilding the solution..
Please let me know if you need any other information..

Create databasebase with entity framework code first approach

I do not want that my database is created when I insert a record. One reason is I do not want to create sample application, do an insert just to have a database...
I want that my database is created via the package manager console.
How can I do that?
It's a little unclear what you're asking, but I think you're trying to prevent the database from being created automatically from the application code.
The database is created on the first use of the DataContext. If you don't want the database to be created on the first use of the data context you can add Database.SetInitializer<YourContextClassHere>(null); to your Global.asax.cs file.
Then you could use the Update-Database cmdlet in Visual Studio to run the pending migrations including creating the database.

How can i know which object is preventing me from saving?

I'm working on a Microstrategy 8.1.525.151 Client with a Microstrategy Server 8.1. While creating a report i deleted some objects and after that, each time i try create or change any object (report, filter, attribute) i get the same error when i try to Save
The error is
'Cannot save, move or copy this object because it has been changed in the Metadata'
I've tried refreshing the schema both in the client and server, deleted and recreated the objects (it only works on the server but doesn't refresh on the client) and also the menu Administration/Server/Purge Cache Objects
With the exception of the Microstrategy knowledge base (which i cannot access) all i have found is mentions of changing multiple objects, however i don't know which objects may be causing this error if any
Thanks in advance for the help
If you cannot create/save any other object I'm afraid that your metadata are corrupted.
There are some utility provided by MicroStrategy to fix them, but I don't think they still support version 8.1. Your best shot is to try with MicroStrategy tech support.
You are the only one with this problem? other users can modify objects?
The way i used to solve it was to delete all attributes and reports i created since i started having such a problem, (it was easier because it was all in a single folder for attributes and a single folder for reports and i suspect in certain cases also other objects would need deletion) also restarted the intelligence server

How to migrate new data model in a CoreData project?

I have a simple problem, I have an app based on CoreData and I need to change the structure a little. How can I migrate the old structure into the new one. Just adding one attribute will chrash the whole app.
Thanks
Have a look at the Apple Docs
http://developer.apple.com/iPhone/library/documentation/Cocoa/Conceptual/CoreDataVersioning/Introduction/Introduction.html
Once you have the basics of Core Data down, you can implement versioning. Until then, if you're just testing things out, you can always delete the app from the Simulator or device. Reinstalling the app will create a fresh data store (usually).
When you finally do get to the point where you want to version, you add a new one by clicking on your core data model file (YourApp.xcdatamodel). Then pull down the 'Design' menu, hover on 'Data Model', and click 'Add Model Version'.
Don't forget to change your model extension from 'mom' to 'momd' (wherever you're loading it, probably in your app delegate), and when you have your new version in hand, go back to that menu and click 'Set Current Version'.