Member Avatar

Hi, all. I am using Entity Framework and decided to do some dependency injection in order to make my functions more testable. This seemed to bring up a few questions that I found difficult to solve. I guess the difficult part is figuring out the best practice of doing this, rather. So, to cut it short, I'm using Moq for mocking up the context class and the datasets. The class looks something like this: public class Auth { private dbcontext _ctx; public Auth(dbcontext ctx) { _ctx = ctx; } public bool Authenticate(string usr, string psw) { var a = _ctx.accounts.Where( …

+0 forum 0
Member Avatar

Hi, I have been getting this error when doing savechanges(). System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session. I read this issue in many places and most are fixed with a .ToList() .First() or similar methods (basically not changing the object while the reading happens. I have made sure that this is taken care in the code. i get this error when i access the site and run from 2 different machines, and the i get this error from various places (sometimes when i save task A , some times B and so …

+0 forum 0
Member Avatar

Now days, there are frame work available in different programming language which generated back hand programming automatically with predefined structure. As a result, programmers don't require to write lengthy code for repetitive functions and framework can do the job. It is true that use of framework saves time, but should we really use framework as excessive use of framework can reduce your programming skill and we need to be careful selecting one which provide error free coding and flexibility in customization. What is your view?

+0 forum 0
Member Avatar

I Build an ASP.NET project with PL,BL,DAl, BE of Entity Data Model(=.edmx) which I generated from a service Based DB (= .mdf) which is located in my DAL project. I did copied the connectionString from the BE app.config to the PL web.config what's wrong? why I get this error: System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file C:\Documents and Settings\user\שולחן העבודה\למידה אישית\Lev\Lev\App_Data\Midrasha.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. my code logic is PL->BL->DAL- > try to save the new object to the DB. …

+0 forum 0
Member Avatar

DHTMLX announced the final release of DHTMLX Touch 1.0, a free JavaScript framework for building HTML5 mobile web apps. Version 1.0 offers more stable performance, better cross-platform compatibility, and extended customization options. In addition to these improvements, DHTMLX Touch introduces some new features, such as HTML5 offline mode, IDE integration, back button support, and online skin builder tool. The detailed documentation, demos, and code samples shorten the learning curve and allow developers to quickly create great looking web apps for mobile and touch devices. This update extends the list of supported desktop browsers (Chrome, Safari, FF, Opera, IE8+) and adds …

+0 forum 0
Member Avatar

As I understand VIEWS - is where the HTML. CONTROLLERS - are the methods controlling views. MODELS - is where the "querying" (SQL) that controllers used? Can I ask for a simple example on how to use this M-V-C? actually the example available didn't help much, just more questions. How can I fetch data from SQL SERVER 2008 using M-V-C? The examples available didn't use external data, but the LINQ something... he just setup something inside the VS2008. Thanks guys

+0 forum 0
Member Avatar

Im using eneity framework and I would like to create a partail class which i have done. Namespace CulminITIMSModel Partial Public Class Role Private _roleID As Integer = 0 Private _role As String = "" <StringLengthValidator(1, 50, Ruleset:="RuleSetA", _ MessageTemplate:="First Name must be between 1 and 50 characters")> _ Public Property Role1() As String Get Return _role End Get Set(ByVal value As String) _role = value End Set End Property End Class End Namespace I want to enter a new record with possibly more than 50 characters for the name, when i run the program the system gives me an …

+0 forum 0
Member Avatar

Hi All, I am trying to start writing a wiki-ish CMS I've been contemplating for a while now. the content will include pics, html content, and should be stored in a database (the current pick is postgres) A few questions for the more experienced folk 'round here: 1. how do I plan such a database - is there a ready-made data type for a webpage, or do I need to build a table for every component (e.g. pictures). Is there a ready template for such a thing? 2. Python web frameworks - which would be best suited for this? Django …

+0 forum 0
Member Avatar

Hi Everyone, I am trying to write a software that can synchronize a folder amongst peers connected in a Wireless Ad-hoc network I have written some code and now i have the IPs of all the peers who wish to sync.(I did this using UDP broadcast. Interested peers will reply to broadcast and their IP is stored. Is there a better way to do this?) Now what i need to do is the actual folder synchronization. I did some googling and binging :) and saw this Microsoft Sync Framework File Synchronization which is what i need(I was actually trying to …

+0 forum 0
Member Avatar

Hello all, I'm making an application that manipulates the common web-browser Internet Explorer 8 using the White Framework([url]http://www.white.codeplex.com/)and[/url] I am having some problems. I'm trying to go to(in IE) Tools>Internet Options so I used the code given here:"http://white.codeplex.com/wikipage?title=MenuBar%2c%20Menu%20and%20PopupMenu&referringTitle=Programming%20using%20white" code snippet of mine: [code] MenuBar menuBar = window.MenuBar; Menu level2Menu = menuBar.MenuItem("Tools","Internet Options..."); level2Menu.Click(); [/code] and this code clicks on the 'Tools' button and then crashes and gives me the error: "Error invoking MenuBar.MenuItem" Help??? Thanks SO much

+0 forum 0
Member Avatar

Since Django is not yet compatible with Python 3, what are other good web application development frameworks compatible with Python3?

+0 forum 0
Member Avatar

Hello, I would like to know if you know any framework/classes for systems administration in windows/linux environment. Thanks for you replies! Bye, Marco.

+0 forum 0

The End.