1 override of Type
System.Data.Linq (1)
54 references to Type
System.Data.Linq (54)
ChangeDirector.cs (18)
66if (item.Type.Table.InsertMethod != null) {
68item.Type.Table.InsertMethod.Invoke(this.context, new object[] { item.Current });
103if (item.Type.Table.InsertMethod != null) {
117if (item.Type.Table.UpdateMethod != null) {
121item.Type.Table.UpdateMethod.Invoke(this.context, new object[] { item.Current });
156if (item.Type.Table.UpdateMethod != null) {
167if (item.Type.Table.DeleteMethod != null) {
169item.Type.Table.DeleteMethod.Invoke(this.context, new object[] { item.Current });
197if (item.Type.Table.DeleteMethod != null) {
231MetaType mt = item.Type;
235ParameterExpression p = Expression.Parameter(item.Type.Table.RowType.Type, "p");
239return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type, resultSelector.Body.Type }, Expression.Constant(item.Current), resultSelector);
242return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type }, Expression.Constant(item.Current));
289List<MetaDataMember> membersToSync = GetAutoSyncMembers(item.Type, updateType);
316MetaType rowType = tracked.Type.GetInheritanceType(database.GetType());
351MetaType mt = tracked.Type;
380MetaType rowType = tracked.Type;
399ITable table = this.context.GetTable(tracked.Type.InheritanceRoot.Type);
ChangeProcessor.cs (30)
142this.services.RemoveCachedObjectLike(deletedItem.Type, deletedItem.Original);
148object lookup = this.services.InsertLookupCachedObject(insertedItem.Type, insertedItem.Current);
164foreach (MetaAssociation assoc in to.Type.Associations) {
247if (item.Type.HasAnyValidateMethod) {
248SendOnValidate(item.Type, item, ChangeAction.Insert);
251if (item.Type.HasAnyValidateMethod) {
252SendOnValidate(item.Type, item, ChangeAction.Delete);
256if (item.IsModified && item.Type.HasAnyValidateMethod) {
257SendOnValidate(item.Type, item, ChangeAction.Update);
339foreach (MetaDataMember mem in tracked.Type.PersistentDataMembers) {
343throw Error.IdentityChangeNotAllowed(mem.Name, tracked.Type.Name);
346throw Error.DbGeneratedChangeNotAllowed(mem.Name, tracked.Type.Name);
370this.TrackUntrackedObjects(item.Type, item.Current, visited);
412if (!tracked.IsPendingGeneration(tracked.Type.IdentityMembers)) {
414object cached = this.services.InsertLookupCachedObject(tracked.Type, item);
424this.services.RemoveCachedObjectLike(tracked.Type, item);
425this.services.InsertLookupCachedObject(tracked.Type, item);
435object cached = this.services.GetCachedObjectLike(tracked.Type, item);
445this.services.RemoveCachedObjectLike(tracked.Type, item);
446this.services.InsertLookupCachedObject(tracked.Type, item);
464this.ObserveUntrackedObjects(item.Type, item.Current, visited);
487if (!tracked.IsPendingGeneration(tracked.Type.IdentityMembers)) {
545MetaType mt = item.Type;
617if (x.Type != y.Type) {
618return string.CompareOrdinal(x.Type.Type.FullName, y.Type.Type.FullName);
622foreach (MetaDataMember mm in x.Type.IdentityMembers) {
671foreach (MetaAssociation assoc in item.Type.Associations) {
677if (other != item || item.Type.DBGeneratedIdentityMember != null) {