Posted on Dec 26, 2011 (permalink)
Reply
Posted on Dec 28, 2011 (permalink)
1) Can you give us more information about what you understand by tracking the changes of fields and tables? Do you have database migration in mind(for example changing the database and trying to update the domain model out of this). Or, do you have in mind listening to events similar to OnPropertyChanged()? Both are possible with OpenAccess but we have to find the right case to present it to you. 2) Yes, that is a feature of our product. 3) No, OpenAccess works with Linq as a .NET standard for querying data. It also exposes API for executing direct SQL to your database server. 4) This is possible by implementing IInstanceCallbacks on your objects. 5) OpenAccess natively supports enum fields. You should just manually set the type of your field to be your custom enum in the Visual Designer(there is no such UI integration for supporting enums as it is in EF at the moment). However OpenAccess can work with any enum, not only enums that are created via a special UI as it is with EF.
if( theObjectScopeProvider1 == null )
theObjectScopeProvider1 = new SampleDBProvider();
if( theObjectScopeProvider1.myDatabase == null )
{
string assumedInitialConfiguration =
"<
openaccess
>" +
references
reference
assemblyname
=
'PLACEHOLDER'
configrequired
'True'
/>" +
"</
>";
System.Reflection.Assembly dll = theObjectScopeProvider1.GetType().Assembly;
assumedInitialConfiguration = assumedInitialConfiguration.Replace(
"PLACEHOLDER", dll.GetName().Name);
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.LoadXml(assumedInitialConfiguration);
Database db = Telerik.OpenAccess.Database.Get("SampleDBConnection",
xmlDoc.DocumentElement,
new System.Reflection.Assembly[] { dll } );
theObjectScopeProvider1.myDatabase = db;
}
Posted on Dec 29, 2011 (permalink)
public
partial
EntityDiagramsContext
IObjectScope Scope
get
return
this
.GetScope();}
EntityDiagramsContext context =
new
EntityDiagramsContext();
IObjectScope scope = context.Scope;
scope.Tracking.Added +=
AddEventHandler(Tracking_Added);
void
Tracking_Added(
object
sender, AddEventArgs e)
//your tracking code here;
Back to Top
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below